forked from PhantazmNetwork/PhantazmServer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
48 lines (42 loc) · 1.17 KB
/
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
42
43
44
45
46
47
48
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")
pluginManagement {
repositories {
//necessary for phantazm-zombies-mapeditor module which contains a Fabric mod
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
maven("https://dl.cloudsmith.io/public/steanky/element/maven/")
mavenCentral()
gradlePluginPortal()
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
val toSkip = gradle.startParameter.projectProperties.getOrDefault("skipBuild", "").split(",")
sequenceOf(
"core",
"commons",
"messaging",
"mob",
"proxima-minestom",
"server",
"stats",
"zombies-timer",
"velocity",
"zombies",
"zombies-mapdata",
"zombies-mapeditor",
"snbt-builder"
).forEach {
if (!toSkip.contains(it)) {
include(":phantazm-$it")
project(":phantazm-$it").projectDir = file(it)
} else {
println("Skipping project module $it")
}
}