generated from FabricMC/fabric-example-mod
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathsettings.gradle.kts
102 lines (87 loc) · 3.41 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
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
pluginManagement {
repositories {
maven("https://maven.quiltmc.org/repository/release") {
name = "Quilt"
}
maven("https://maven.fabricmc.net/") {
name = "Fabric"
}
maven("https://maven.architectury.dev/") {
name = "Architectury"
}
maven("https://maven.neoforged.net/releases/") {
name = "NeoForged"
}
maven("https://maven.kneelawk.com/releases/") {
name = "Kneelawk"
}
gradlePluginPortal()
}
plugins {
val loom_version: String by settings
id("fabric-loom") version loom_version
val moddev_version: String by settings
id("net.neoforged.moddev") version moddev_version
val remapcheck_version: String by settings
id("com.kneelawk.remapcheck") version remapcheck_version
val versioning_version: String by settings
id("com.kneelawk.versioning") version versioning_version
val kpublish_version: String by settings
id("com.kneelawk.kpublish") version kpublish_version
val submodule_version: String by settings
id("com.kneelawk.submodule") version submodule_version
val minotaur_version: String by settings
id("com.modrinth.minotaur") version minotaur_version
val curse_gradle_version: String by settings
id("com.matthewprenger.cursegradle") version curse_gradle_version
}
}
rootProject.name = "extra-mod-integrations"
fun module(enabled: Boolean, name: String) {
if (!enabled) return
include(name)
project(":$name").projectDir = File(rootDir, "modules/${name.replace(':', '/')}")
}
fun module(name: String, vararg submodules: Pair<Boolean, String>) {
include(name)
project(":$name").projectDir = File(rootDir, "modules/$name")
for ((enabled, submodule) in submodules) {
if (!enabled) continue
include("$name:$submodule")
project(":$name:$submodule").projectDir = File(rootDir, "modules/$name/${submodule.replace(':', '/')}")
}
}
val xplat = true
val mojmap = true
val fabric = true
val neoforge = true
module(xplat, "core-xplat")
module(mojmap, "core-xplat-mojmap")
module(fabric, "core-fabric")
module(neoforge, "core-neoforge")
// Mod Integrations (sorted alphabetically)
// Actually Additions
val actually_additions_enabled: String by settings
module(neoforge && actually_additions_enabled.toBoolean(), "actually-additions-neoforge")
// Chipped
val chipped_enabled: String by settings
module(xplat && chipped_enabled.toBoolean(), "chipped-xplat")
module(fabric && chipped_enabled.toBoolean(), "chipped-fabric")
module(neoforge && chipped_enabled.toBoolean(), "chipped-neoforge")
// Farmer's Delight
val farmers_delight_enabled: String by settings
module(neoforge && farmers_delight_enabled.toBoolean(), "farmers-delight-neoforge")
// Rechiseled
val rechiseled_enabled: String by settings
module(xplat && rechiseled_enabled.toBoolean(), "rechiseled-xplat")
module(fabric && rechiseled_enabled.toBoolean(), "rechiseled-fabric")
module(neoforge && rechiseled_enabled.toBoolean(), "rechiseled-neoforge")
// Reliquary
val reliquary_enabled: String by settings
module(xplat && reliquary_enabled.toBoolean(), "reliquary-neoforge")
// Tech Reborn
val tech_reborn_enabled: String by settings
module(fabric && tech_reborn_enabled.toBoolean(), "tech-reborn-fabric")
// Final artifacts
module(fabric, "all-fabric")
module(neoforge, "all-neoforge")