-
-
Notifications
You must be signed in to change notification settings - Fork 17
/
settings.gradle.kts
61 lines (54 loc) · 1.57 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
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
pluginManagement {
repositories {
gradlePluginPortal()
}
plugins {
id("com.github.johnrengelman.shadow") version "8.1.1"
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"
}
}
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://nexus.velocitypowered.com/repository/maven-public/") {
name = "VelocityPowered"
}
maven("https://repo.codemc.org/repository/maven-public") {
name = "CodeMC"
}
maven("https://repo.dmulloy2.net/nexus/repository/public") {
name = "dmulloy2"
}
}
}
rootProject.name = "PistonQueue"
includeBuild("PistonQueuePlaceholder")
setOf(
"build-data",
"shared",
"bukkit",
"bungee",
"velocity",
"universal"
).forEach { setupPQSubproject(it) }
fun setupPQSubproject(name: String) {
setupSubproject("pistonqueue-$name") {
projectDir = file(name)
}
}
inline fun setupSubproject(name: String, block: ProjectDescriptor.() -> Unit) {
include(name)
project(":$name").apply(block)
}