-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathbuild.gradle
39 lines (35 loc) · 1.13 KB
/
build.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
// GradleRIO plugin is defined in buildSrc!
plugins {
id 'org.ysb33r.doxygen' version '0.5' apply false
}
// For Azure
allprojects {
plugins.withType(edu.wpi.first.toolchain.roborio.RoboRioToolchainPlugin).whenPluginAdded {
if (project.hasProperty('no-roborio'))
toolchainsPlugin.getByName('roboRio').optional = true
}
plugins.withType(NativeComponentPlugin).whenPluginAdded {
project.model {
binaries {
all {
if (it instanceof NativeBinarySpec) {
if (project.hasProperty('no-desktop') && targetPlatform.name == edu.wpi.first.toolchain.NativePlatforms.desktop) {
it.buildable = false
}
if (project.hasProperty('no-roborio') && targetPlatform.name == edu.wpi.first.toolchain.NativePlatforms.roborio) {
it.buildable = false
}
}
}
}
}
}
}
// Put buildDir all in the same place - that means all projects can use the same tmp/expandedArchives folder,
// instead of extracting the same libs over and over again.
subprojects {
project.buildDir = rootProject.buildDir
}
wrapper {
gradleVersion = '6.0'
}