-
Notifications
You must be signed in to change notification settings - Fork 5
/
settings.gradle.kts
41 lines (35 loc) · 964 Bytes
/
settings.gradle.kts
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
rootProject.name = "phantazm"
val localSettings = file("local.settings.gradle.kts")
if (localSettings.exists()) {
//apply from local settings too, if it exists
apply(localSettings)
}
includeBuild("./minestom")
includeBuild("./commons")
pluginManagement {
repositories {
maven("https://dl.cloudsmith.io/public/steanky/element/maven/")
gradlePluginPortal()
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
val toSkip = gradle.startParameter.projectProperties.getOrDefault("skipBuild", "").split(",")
sequenceOf(
"core",
"mob",
"proxima-minestom",
"server",
"stats",
"velocity",
"zombies",
"snbt-builder",
"dev-launcher"
).forEach {
if (!toSkip.contains(it)) {
include(":phantazm-$it")
project(":phantazm-$it").projectDir = file(it)
println("Building module $it")
} else {
println("Ignoring module $it")
}
}