forked from ejektaflex/Bountiful
-
Notifications
You must be signed in to change notification settings - Fork 0
/
settings.gradle.kts
133 lines (97 loc) · 4.78 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
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
pluginManagement {
repositories {
maven(url = "https://maven.fabricmc.net/")
maven(url = "https://maven.architectury.dev/")
maven(url = "https://maven.minecraftforge.net/")
gradlePluginPortal()
}
}
dependencyResolutionManagement {
versionCatalogs {
create("libs") {
val Plugins = object {
val Architectury = "3.4.155" //=> https://maven.architectury.dev/architectury-plugin/architectury-plugin.gradle.plugin/
val ArchLoom = "1.7-SNAPSHOT" //=> https://maven.architectury.dev/dev/architectury/architectury-loom/
val Shadow = "7.1.2"
}
val Platform = object {
val MC = "1.21"
// https://fabricmc.net/develop/
val Yarn = "build.9"
val FabricLoader = "0.16.0"
val FabricApi = "0.100.4"
val NeoForge = "21.0.86-beta" //=> https://projects.neoforged.net/neoforged/neoforge
}
val Ejekta = object {
val Kambrik = "8.0.0"
val KambrikSnapshot = true
}
val Kotlin = object {
val Version = "2.0.0" // => https://kotlinlang.org/docs/releases.html
val Serialization = "1.7.0" // => https://github.com/Kotlin/kotlinx.serialization/releases
val FabricAdapter = "1.11.0" // => https://modrinth.com/mod/fabric-language-kotlin/versions
val ForgeAdapter = "5.3.0" //=> https://modrinth.com/mod/kotlin-for-forge/versions
}
val Mods = object {
val Cloth = "15.0.127" // => https://modrinth.com/mod/cloth-config/versions
val ModMenu = "11.0.1" // => https://modrinth.com/mod/modmenu/versions
}
// Versions
val ejektaGroup = "io.ejekta"
val modPackage = "bountiful"
val modVersion = "8.0.0"
version("org", ejektaGroup)
version("pkg", "$ejektaGroup.$modPackage")
version("mod", modVersion)
version("fullversion", "$modVersion+${Platform.MC}")
version("yarn", "${Platform.MC}+${Platform.Yarn}")
version("kambrik", Ejekta.Kambrik)
version("mc", Platform.MC)
version("kotlin", Kotlin.Version)
version("ksx", Kotlin.Serialization)
version("architectury", Plugins.Architectury)
version("archloom", Plugins.ArchLoom)
version("shadow", Plugins.Shadow)
// Platform dependencies
library("minecraft", "net.minecraft:minecraft:${Platform.MC}")
val fabricLoader = "fabric-loader"
library(fabricLoader, "net.fabricmc:fabric-loader:${Platform.FabricLoader}")
val neoForgeLib = "neoforge"
library(neoForgeLib, "net.neoforged:neoforge:${Platform.NeoForge}")
// Adapters
library("fabric-adapter", "net.fabricmc:fabric-language-kotlin:${Kotlin.FabricAdapter}+kotlin.${Kotlin.Version}")
library("forge-adapter", "thedarkcolour:kotlinforforge-neoforge:${Kotlin.ForgeAdapter}")
library("fabric-api", "net.fabricmc.fabric-api:fabric-api:${Platform.FabricApi}+${Platform.MC}")
// Self Dependencies
val kambrikDepSuffix = "${Ejekta.Kambrik}+${Platform.MC}${if (Ejekta.KambrikSnapshot) ".SNAPSHOT+" else null}"
val kambrikCommon = "kambrik-common"
library(kambrikCommon, "$ejektaGroup:$kambrikCommon:$kambrikDepSuffix")
val kambrikFabric = "kambrik-fabric"
library(kambrikFabric, "$ejektaGroup:$kambrikFabric:$kambrikDepSuffix")
val kambrikForge = "kambrik-forge"
library(kambrikForge, "$ejektaGroup:$kambrikForge:$kambrikDepSuffix")
// Mod Dependencies
val modDepClothConfig = "mod-dep-cloth-config"
library(modDepClothConfig, "me.shedaniel.cloth:cloth-config:${Mods.Cloth}")
val modDepClothConfigForge = "$modDepClothConfig-forge"
library(modDepClothConfigForge, "me.shedaniel.cloth:cloth-config-neoforge:${Mods.Cloth}")
val modDepModMenu = "mod-dep-mod-menu"
library(modDepModMenu, "com.terraformersmc:modmenu:${Mods.ModMenu}")
// Other
library("ksx", "org.jetbrains.kotlinx:kotlinx-serialization-json:${Kotlin.Serialization}")
// Platform bundles
bundle("mod-deps-common", listOf(
fabricLoader,
kambrikCommon,
modDepClothConfig
))
bundle("mod-deps-fabric", listOf(
fabricLoader,
kambrikFabric,
modDepModMenu
))
}
}
}
// TODO re-add neoforge
include("common", "fabric", "datagen")