-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
settings.gradle.kts
69 lines (62 loc) · 1.72 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
63
64
65
66
67
68
69
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
gradlePluginPortal()
}
plugins {
id("com.gradleup.shadow") version "9.0.0-beta4"
id("org.cadixdev.licenser") version "0.6.1"
id("net.kyori.indra") version "3.1.3"
id("net.kyori.indra.git") version "3.1.3"
id("net.kyori.indra.publishing") version "3.1.3"
id("net.kyori.blossom") version "2.1.0"
}
}
plugins {
id("org.gradle.toolchains.foojay-resolver-convention") version "0.9.0"
}
dependencyResolutionManagement {
@Suppress("UnstableApiUsage")
repositories {
mavenCentral()
maven("https://oss.sonatype.org/content/repositories/snapshots") {
name = "Sonatype"
}
maven("https://papermc.io/repo/repository/maven-public/") {
name = "PaperMC"
}
maven("https://repo.spongepowered.org/maven") {
name = "SpongePowered"
}
maven("https://nexus.velocitypowered.com/repository/maven-public/") {
name = "VelocityPowered"
}
maven("https://repo.codemc.org/repository/maven-public") {
name = "CodeMC"
}
maven("https://jitpack.io") {
name = "jitpack.io"
}
}
}
rootProject.name = "PistonMOTD"
setOf(
"build-data",
"kyori",
"api",
"shared",
"bukkit",
"bungee",
"sponge",
"velocity",
"universal"
).forEach { setupPMSubproject(it) }
fun setupPMSubproject(name: String) {
setupSubproject("pistonmotd-$name") {
projectDir = file(name)
}
}
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
include(name)
project(":$name").apply(block)
}