[build] Setup project for cross-version Minecraft development

This commit is contained in:
2025-10-26 12:52:04 +01:00
parent 1fbc97866c
commit d3f7aba2c9
18 changed files with 200 additions and 21 deletions

View File

@@ -2,25 +2,54 @@ rootProject.name = "tweed5-minecraft"
pluginManagement {
includeBuild("../conventions")
includeBuild("conventions")
repositories {
gradlePluginPortal()
maven {
name = "Siphalor"
url = uri("https://maven.siphalor.de")
mavenContent {
includeGroupAndSubgroups("de.siphalor")
}
}
maven {
name = "FabricMC"
url = uri("https://maven.fabricmc.net")
mavenContent {
includeGroupAndSubgroups("net.fabricmc")
includeGroup("fabric-loom")
}
}
}
}
dependencyResolutionManagement {
repositories {
mavenCentral()
}
versionCatalogs {
create("libs") {
from(files("../gradle/libs.versions.toml"))
}
create("mcCommonLibs") {
from(files("gradle/mcCommonLibs.versions.toml"))
}
create("mcLibs") {
val mcVersionDescriptor = providers.gradleProperty("minecraft.version.descriptor").get()
from(files("gradle/mc-$mcVersionDescriptor/mcLibs.versions.toml"))
}
}
}
includeBuild("../tweed5")
includeNormalModule("bundle")
includeNormalModule("coat-bridge")
fun includeNormalModule(name: String) {
includeAs("tweed5-$name", "$name")
includeAs("tweed5-$name", name)
}
fun includeAs(name: String, path: String) {