forked from DancingSnow0517/ArchitecturyExampleMod
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle
164 lines (127 loc) · 7.97 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
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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
pluginManagement {
repositories {
maven { url "https://maven.fabricmc.net/" }
maven { url "https://maven.architectury.dev/" }
maven { url "https://maven.minecraftforge.net/" }
gradlePluginPortal()
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
// Minecraft Version
def minecraftVersion = "${minecraft_version}"
// Mod Dependencies Versions
// Common
def jeiVersion = "${jei_version}"
def reiVersion = "${rei_version}"
def emiVersion = "${emi_version}"
def kjsVersion = "${kjs_version}"
// Fabric
def fabricLoaderVersion = "${fabric_loader_version}" // https://fabricmc.net/develop/
def fabricApiVersion = "${fabric_api_version}" // https://fabricmc.net/develop/
def createFabricVersion = "${create_fabric_version}"
def lazyDfuFabricVersion = "${lazy_dfu_fabric_version}"
def modMenuFabricVersion = "${mod_menu_fabric_version}"
def jadeFabricVersion = "${jade_fabric_version}"
def registrateFabricVersion = "${registrate_fabric_version}"
// Forge
def forgeVersion = "${forge_version}"
def registrateForgeVersion = "${registrate_forge_version}"
def createForgeVersion = "${create_forge_version}"
def flywheelForgeVersion = "${flywheel_forge_version}"
def jadeForgeVersion = "${jade_forge_version}"
// Libs
def quiltMappingsVersion = "${quilt_mappings_version}" // https://lambdaurora.dev/tools/import_quilt.html
def parchmentVersion = "${parchment_version}" // https://parchmentmc.org/docs/getting-started
def shadowVersion = "${shadow_version}"
def architecturyPluginVersion = "${architectury_plugin_version}"
def architecturyLoomVersion = "${architectury_loom_version}"
def mixinextrasVersion = "${mixinextras_version}"
def configurationVersion = "${configuration_version}"
fabric {
def fabricLoader = version("fabricLoader", fabricLoaderVersion)
library("fabricLoader", "net.fabricmc", "fabric-loader").versionRef(fabricLoader)
def fabricApi = version("fabricApi", "${fabricApiVersion}+${minecraftVersion}")
library("fabricApi", "net.fabricmc.fabric-api", "fabric-api").versionRef(fabricApi)
def registrate = version("registrate", registrateFabricVersion)
library("registrate", "com.tterrag.registrate_fabric", "Registrate").versionRef(registrate)
def createFabric = version("create-fabric", "${createFabricVersion}+mc${minecraftVersion}")
library("createFabric", "com.simibubi.create", "create-fabric-${minecraftVersion}").versionRef(createFabric)
def lazyDfu = version("lazydfu", lazyDfuFabricVersion)
library("lazydfu", "maven.modrinth", "lazydfu").versionRef(lazyDfu)
def modMenu = version("modmenu", modMenuFabricVersion)
library("modmenu", "com.terraformersmc", "modmenu").versionRef(modMenu)
def jei = version("jei", jeiVersion)
library("jei-common-api", "mezz.jei", "jei-${minecraftVersion}-common-api").versionRef(jei)
library("jei-fabric-api", "mezz.jei", "jei-${minecraftVersion}-fabric-api").versionRef(jei)
library("jei-fabric-impl", "mezz.jei", "jei-${minecraftVersion}-fabric").versionRef(jei)
bundle("jei", ["jei-common-api", "jei-fabric-api"])
def rei = version("rei", reiVersion)
library("rei-plugin", "me.shedaniel", "RoughlyEnoughItems-default-plugin-fabric").versionRef(rei)
library("rei-api", "me.shedaniel", "RoughlyEnoughItems-api-fabric").versionRef(rei)
library("rei-fabric", "me.shedaniel", "RoughlyEnoughItems-fabric").versionRef(rei)
def emi = version("emi", emiVersion)
library("emi", "dev.emi", "emi-fabric").versionRef(emi)
def jade = version("jade", jadeFabricVersion)
library("jade", "maven.modrinth", "jade").versionRef(jade)
def kubejs = version("kubejs", kjsVersion)
library("kubejs", "dev.latvian.mods", "kubejs-fabric").versionRef(kubejs)
def mixinextras = version("mixinextras", mixinextrasVersion)
library("mixinextras", "io.github.llamalad7", "mixinextras-fabric").versionRef(mixinextras)
library("mixinextras-common", "io.github.llamalad7", "mixinextras-common").versionRef(mixinextras)
def configuration = version("configuration", configurationVersion)
library("configuration", "dev.toma.configuration", "configuration-fabric-1.20.1").versionRef(configuration)
}
forge {
version("forgeShortVersion", forgeVersion)
def minecraftForge = version("minecratfForge", "${minecraftVersion}-${forgeVersion}")
library("minecraftForge", "net.minecraftforge", "forge").versionRef(minecraftForge)
def registrate = version("registrate", registrateForgeVersion)
library("registrate", "com.tterrag.registrate", "Registrate").versionRef(registrate)
def createForge = version("createForge", createForgeVersion)
library("createForge", "com.simibubi.create", "create-${minecraftVersion}").versionRef(createForge)
def flywheel = version("flywheel", flywheelForgeVersion)
library("flywheel", "com.jozufozu.flywheel", "flywheel-forge-${minecraftVersion}").versionRef(flywheel)
def jei = version("jei", jeiVersion)
library("jei-common-api", "mezz.jei", "jei-${minecraftVersion}-common-api").versionRef(jei)
library("jei-forge-api", "mezz.jei", "jei-${minecraftVersion}-forge-api").versionRef(jei)
library("jei-forge-impl", "mezz.jei", "jei-${minecraftVersion}-forge").versionRef(jei)
def rei = version("rei", reiVersion)
library("rei-plugin", "me.shedaniel", "RoughlyEnoughItems-default-plugin-forge").versionRef(rei)
library("rei-api", "me.shedaniel", "RoughlyEnoughItems-api-forge").versionRef(rei)
library("rei-forge", "me.shedaniel", "RoughlyEnoughItems-forge").versionRef(rei)
def emi = version("emi", emiVersion)
library("emi", "dev.emi", "emi-forge").versionRef(emi)
def jade = version("jade", jadeForgeVersion)
library("jade", "maven.modrinth", "jade").versionRef(jade)
def kubejs = version("kubejs", kjsVersion)
library("kubejs", "dev.latvian.mods", "kubejs-forge").versionRef(kubejs)
def mixinextras = version("mixinextras", mixinextrasVersion)
library("mixinextras-forge", "io.github.llamalad7", "mixinextras-forge").versionRef(mixinextras)
def configuration = version("configuration", configurationVersion)
library("configuration", "dev.toma.configuration", "configuration-forge-1.20.1").versionRef(configuration)
}
libs {
version("quiltMappings", quiltMappingsVersion)
version("parchment", parchmentVersion)
def minecraft = version("minecraft", minecraftVersion)
library("minecraft", "com.mojang", "minecraft").versionRef(minecraft)
def shadow = version("shadow", shadowVersion)
plugin("shadow", "com.github.johnrengelman.shadow").versionRef(shadow)
def architecturyPlugin = version("architectury", architecturyPluginVersion)
plugin("architectury", "architectury-plugin").versionRef(architecturyPlugin)
def architecturyLoom = version("architectury-loom", architecturyLoomVersion)
plugin("architectury-loom", "dev.architectury.loom").versionRef(architecturyLoom)
}
}
}
include("${mod_id}-common")
include("${mod_id}-fabric")
include("${mod_id}-forge")
project(":${mod_id}-common").setProjectDir(new File("common"))
project(":${mod_id}-forge").setProjectDir(new File("forge"))
project(":${mod_id}-fabric").setProjectDir(new File("fabric"))
rootProject.name = "${mod_name}"