forked from wpilibsuite/shuffleboard
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsettings.gradle
More file actions
27 lines (25 loc) · 890 Bytes
/
settings.gradle
File metadata and controls
27 lines (25 loc) · 890 Bytes
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
include ":api"
include ":app"
include ":app:test_plugins"
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) }
}