-
-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathsettings.gradle.kts
More file actions
34 lines (27 loc) · 789 Bytes
/
settings.gradle.kts
File metadata and controls
34 lines (27 loc) · 789 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
28
29
30
31
32
33
34
rootProject.name = "ChatterBox"
listOf(
"hytale" to "hytale",
"minecraft/velocity" to "velocity",
"minecraft/paper" to "paper",
"discord" to "discord",
"common" to "common",
"api" to "api"
).forEach {
includeProject(it)
}
fun includeProject(pair: Pair<String, String>): Unit = includeProject(pair.first, pair.second)
fun includeProject(name: String, block: ProjectDescriptor.() -> Unit) {
include(name)
project(":$name").apply(block)
}
fun includeProject(path: String, name: String) {
includeProject(name) {
this.name = "${rootProject.name.lowercase()}-$name"
this.projectDir = File(path)
}
}
fun includeProject(name: String) {
includeProject(name) {
this.name = "${rootProject.name.lowercase()}-$name"
}
}