-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
39 lines (35 loc) · 1.01 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
pluginManagement {
// Add repositories to grab plugins from
repositories {
gradlePluginPortal()
maven {
name = "Forge"
url = uri("https://maven.minecraftforge.net")
}
maven {
name = "Fabric"
url = uri("https://maven.fabricmc.net")
}
maven {
name = "Quilt"
url = uri("https://maven.quiltmc.org/repository/release")
}
}
}
// Project data
rootProject.name = extra["base.id"] as String
// Supported Loaders
internal val loaders: List<String> = listOf(
extra["forge.id"] as String,
extra["fabric.id"] as String,
extra["quilt.id"] as String
)
// Supported Languages
internal val languages: List<String> = listOf(
extra["java.id"] as String,
extra["kotlin.id"] as String,
extra["scala.id"] as String,
extra["groovy.id"] as String
)
// Include Loader/Language pair
loaders.forEach { loader -> languages.forEach { language -> include("${loader}:${loader}-${language}") } }