-
Notifications
You must be signed in to change notification settings - Fork 1
/
settings.gradle
30 lines (29 loc) · 1009 Bytes
/
settings.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
import org.gradle.internal.os.OperatingSystem
pluginManagement {
repositories {
mavenCentral()
mavenLocal()
gradlePluginPortal()
String frcYear = '2021'
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
}
maven { url 'http://www.revrobotics.com/content/sw/max/sdk/maven/' }
maven { url "https://plugins.gradle.org/m2/" }
}
}