[build] Setup project for cross-version Minecraft development
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user