diff options
author | kartofen <mladenovnasko0@gmail.com> | 2024-01-18 00:35:25 +0200 |
---|---|---|
committer | kartofen <mladenovnasko0@gmail.com> | 2024-01-18 00:35:25 +0200 |
commit | de82bb11825e8bc5087f10605b3fe2fd926f1909 (patch) | |
tree | 73723345f7c5ebfe8a64d4fe904fa85ea57538e1 /settings.gradle |
init
Diffstat (limited to 'settings.gradle')
-rw-r--r-- | settings.gradle | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/settings.gradle b/settings.gradle new file mode 100644 index 0000000..3e30f84 --- /dev/null +++ b/settings.gradle @@ -0,0 +1,30 @@ +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");
|