-
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathsettings.gradle.kts
62 lines (53 loc) · 1.54 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
plugins {
id("io.papermc.paperweight.userdev") version "1.5.11"
}
}
plugins {
id("com.gradle.enterprise") version "3.16.1"
id("org.gradle.toolchains.foojay-resolver-convention") version "0.7.0"
}
dependencyResolutionManagement {
@Suppress("UnstableAPIUsage")
repositories {
maven("https://nexus.velocitypowered.com/repository/maven-public/") {
name = "velocity-repo"
}
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc-repo"
}
maven("https://ci.pluginwiki.us/plugin/repository/everything/") {
name = "configmaster-repo"
}
maven("https://repo.aikar.co/content/groups/aikar/") {
name = "aikar-repo"
}
mavenCentral()
}
}
rootProject.name = "ServerRestarts"
gradleEnterprise {
buildScan {
if (!System.getenv("CI").isNullOrEmpty()) {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
}
}
}
setupSRSubproject("folia")
setupSRSubproject("common")
setupSRSubproject("paper")
setupSRSubproject("velocity")
setupSubproject("serverrestarts") {
projectDir = file("universal")
}
fun setupSRSubproject(name: String) {
setupSubproject("serverrestarts-$name") {
projectDir = file(name)
}
}
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
include(name)
project(":$name").apply(block)
}