forked from wpilibsuite/shuffleboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle
30 lines (28 loc) · 1004 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
include ":api"
include ":app"
include ":app:test_plugins"
include "example-plugins"
include "example-plugins:custom-data-and-widget"
include "example-plugins:custom-theme"
include "integ_test"
include ":plugins:base"
include ":plugins:cameraserver"
include ":plugins:networktables"
include ":plugins:powerup"
rootProject.children.each {
setUpChildProject(it)
}
private void setUpChildProject(ProjectDescriptor project) {
/*
* Instead of every file being named build.gradle.kts we instead use the name ${project.name}.gradle.kts.
* This is much nicer for searching for the file in your IDE.
*/
final String groovyName = "${project.name}.gradle"
final String kotlinName = "${project.name}.gradle.kts"
project.buildFileName = groovyName
if (!project.buildFile.isFile()) {
project.buildFileName = kotlinName
}
assert project.buildFile.isFile(): "File named $groovyName or $kotlinName must exist."
project.children.each { setUpChildProject(it) }
}