forked from wpilibsuite/sysid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
51 lines (44 loc) · 1.41 KB
/
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
import org.gradle.internal.os.OperatingSystem
pluginManagement {
plugins {
id "edu.wpi.first.GradleRIO" version "2022.2.1"
}
repositories {
mavenLocal()
gradlePluginPortal()
String frcYear = '2022'
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")
// Add libsysid (common library used by robot projects)
include "sysid-library"
// Add project used for analysis integration tests.
include "sysid-projects:analysis-test"
// Add robot projects
include "sysid-projects:drive"
include "sysid-projects:mechanism"
// Make sure each child in sysid-projects points to the correct build file.
project(":sysid-projects").children.each { child ->
child.setBuildFileName("../build.gradle")
}
// Add the main application.
include "sysid-application"