-
-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathsettings.gradle.kts
40 lines (33 loc) · 1.2 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
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
rootProject.name = "common-storage-lib"
pluginManagement {
repositories {
maven(url = "https://maven.architectury.dev/")
maven(url = "https://kneelawk.com/maven")
maven(url = "https://maven.neoforged.net/releases/")
maven(url = "https://maven.minecraftforge.net/")
maven(url = "https://maven.resourcefulbees.com/repository/maven-public/")
maven(url = "https://maven.msrandom.net/repository/root")
gradlePluginPortal()
}
}
includeSubmodule("data")
includeSubmodule("lookup")
includeSubmodule("resources")
includeSubmodule("test")
includeCorePlatform("common")
includeCorePlatform("fabric")
includeCorePlatform("neoforge")
fun includeSubmodule(name: String) {
includePlatformModule(name, "common")
includePlatformModule(name, "fabric")
includePlatformModule(name, "neoforge")
}
fun includePlatformModule(name: String, platform: String) {
include("$name/$platform")
project(":$name/$platform").name = "${rootProject.name}-$name-$platform"
}
fun includeCorePlatform(platform: String) {
include("core/$platform")
project(":core/$platform").name = "${rootProject.name}-$platform"
}