forked from CurtinFRC/2022-RapidReact
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (38 loc) · 1.1 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
40
41
42
43
44
/*
* This file was generated by the Gradle 'init' task.
*
* This is a general purpose Gradle build.
* Learn how to create Gradle builds at https://guides.gradle.org/creating-new-gradle-builds
*/
plugins {
id 'org.ysb33r.doxygen' version '0.7.0'
}
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
}
}
}
}
}
}
}
// Makes all projects use the same buildDir, more efficient for "expanding archives"
subprojects {
project.buildDir = rootProject.buildDir
}
wrapper {
gradleVersion = '6.8'
}