-
Notifications
You must be signed in to change notification settings - Fork 8
/
settings.gradle.kts
45 lines (34 loc) · 1.1 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
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
dependencyResolutionManagement {
repositories {
mavenCentral()
maven("https://repo.broccol.ai/snapshots") {
mavenContent {
snapshotsOnly()
includeGroup("cloud.commandframework")
includeGroup("love.broccolai.corn")
}
}
maven("https://repo.papermc.io/repository/maven-public/")
}
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
}
pluginManagement {
includeBuild("build-logic")
}
rootProject.name = "tickets-parent"
setupSubproject(name = "api")
setupSubproject(name = "common")
setupSubproject(name = "spring")
setupSubproject(folder = "minecraft", name = "common")
setupSubproject(folder = "minecraft", name = "paper")
fun setupSubproject(folder: String? = null, name: String) {
val formattedName = listOfNotNull("tickets", folder, name)
.joinToString("-")
include(name)
val project = project(":$name")
project.name = formattedName
folder?.let {
project.projectDir = file("$folder/$name")
}
}