31 lines
1.0 KiB
Groovy
31 lines
1.0 KiB
Groovy
|
import org.gradle.internal.os.OperatingSystem
|
||
|
|
||
|
pluginManagement {
|
||
|
repositories {
|
||
|
mavenLocal()
|
||
|
gradlePluginPortal()
|
||
|
String frcYear = '2024'
|
||
|
File frcHome
|
||
|
if (OperatingSystem.current().isWindows()) {
|
||
|
String publicFolder = System.getenv('PUBLIC')
|
||
|
if (publicFolder == null) {
|
||
|
publicFolder = "C:\\Users\\Public"
|
||
|
}
|
||
|
def homeRoot = new File(publicFolder, "wpilib")
|
||
|
frcHome = new File(homeRoot, frcYear)
|
||
|
} else {
|
||
|
def userFolder = System.getProperty("user.home")
|
||
|
def homeRoot = new File(userFolder, "wpilib")
|
||
|
frcHome = new File(homeRoot, frcYear)
|
||
|
}
|
||
|
def frcHomeMaven = new File(frcHome, 'maven')
|
||
|
maven {
|
||
|
name 'frcHome'
|
||
|
url frcHomeMaven
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
|
||
|
Properties props = System.getProperties();
|
||
|
props.setProperty("org.gradle.internal.native.headers.unresolved.dependencies.ignore", "true");
|