-
Notifications
You must be signed in to change notification settings - Fork 3
/
settings.gradle
44 lines (38 loc) · 1.35 KB
/
settings.gradle
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
pluginManagement {
repositories {
maven { url "https://maven.fabricmc.net/" }
maven { url "https://maven.architectury.dev/" }
maven { url "https://maven.neoforged.net/releases/" }
gradlePluginPortal()
}
}
rootProject.name = "kessoku-lib"
includeWrapper("fabric")
includeWrapper("neo")
includeModule("base") // Base
includeModule("data") // Data
includeModule("event-base") // Event Base
includeModule("platform") // Platform
includeModule("registry") // Registry
includeModule("lifecycle-events") // Lifecycle Events
includeModule("command") // Command API
includeModule("keybinding") // Keybinding API
includeModule("config") // Config API
includeModule("entrypoint") // Entrypoint API
includeModule("entity-events") // Entity Events
includeModule("blockentity") // Block Entity
includeModule("transfer") // Transfer
includeModule("component") // Component
void includeWrapper(String platform) {
include("wrapper/$platform")
project(":wrapper/$platform").name = "$rootProject.name-$platform"
}
void includeModule(String moduleName) {
includePlatform(moduleName, "common")
includePlatform(moduleName, "fabric")
includePlatform(moduleName, "neo")
}
void includePlatform(String moduleName, String platform) {
include("$moduleName/$platform")
project(":$moduleName/$platform").name = "$moduleName-$platform"
}