-
Notifications
You must be signed in to change notification settings - Fork 108
/
settings.gradle
26 lines (23 loc) · 821 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
rootProject.name = 'GRIP'
include 'annotation'
include 'core'
include 'ui'
include 'ui:linuxLauncher'
include 'ui:preloader'
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) }
}