diff --git a/fabric/.mcdev.template.json b/fabric/.mcdev.template.json index 7bb1415..167bdb8 100644 --- a/fabric/.mcdev.template.json +++ b/fabric/.mcdev.template.json @@ -187,7 +187,7 @@ "template": "../gradle-wrapper.properties.ft", "destination": "gradle/wrapper/gradle-wrapper.properties", "properties": { - "GRADLE_VERSION": "9.2.1" + "GRADLE_VERSION": "9.6.1" } }, { diff --git a/fabric/build.gradle.ft b/fabric/build.gradle.ft index 8d3245a..b9de802 100644 --- a/fabric/build.gradle.ft +++ b/fabric/build.gradle.ft @@ -1,5 +1,9 @@ plugins { +#if ($VERSIONS.minecraftVersion.compareTo($mcver.MC26_1) >= 0) + id 'net.fabricmc.fabric-loom' version '${VERSIONS.loom}' +#else id 'fabric-loom' version '${VERSIONS.loom}' +#end id 'maven-publish' } @@ -42,15 +46,23 @@ repositories { dependencies { // To change the versions see the gradle.properties file minecraft "com.mojang:minecraft:${project.minecraft_version}" -#if (${VERSIONS.useOfficialMappings}) - mappings loom.officialMojangMappings() +#if ($VERSIONS.minecraftVersion.compareTo($mcver.MC26_1) >= 0) + implementation "net.fabricmc:fabric-loader:${project.loader_version}" + + #if (${VERSIONS.useFabricApi}) + implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + #end #else - mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" -#end - modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" + #if (${VERSIONS.useOfficialMappings}) + mappings loom.officialMojangMappings() + #else + mappings "net.fabricmc:yarn:${project.yarn_mappings}:v2" + #end + modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" -#if (${VERSIONS.useFabricApi}) - modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + #if (${VERSIONS.useFabricApi}) + modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_version}" + #end #end } diff --git a/fabric/build.gradle.kts.ft b/fabric/build.gradle.kts.ft index 6111583..efab376 100644 --- a/fabric/build.gradle.kts.ft +++ b/fabric/build.gradle.kts.ft @@ -3,7 +3,11 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile plugins { kotlin("jvm") version "${KOTLIN_LOADER_VERSION.toString().split("kotlin.")[1]}" +#if ($VERSIONS.minecraftVersion.compareTo($mcver.MC26_1) >= 0) + id("net.fabricmc.fabric-loom") version "${VERSIONS.loom}" +#else id("fabric-loom") version "${VERSIONS.loom}" +#end id("maven-publish") } @@ -55,16 +59,25 @@ repositories { dependencies { // To change the versions see the gradle.properties file minecraft("com.mojang:minecraft:${project.property("minecraft_version")}") -#if (${VERSIONS.useOfficialMappings}) - mappings(loom.officialMojangMappings()) +#if ($VERSIONS.minecraftVersion.compareTo($mcver.MC26_1) >= 0) + implementation("net.fabricmc:fabric-loader:${project.property("loader_version")}") + implementation("net.fabricmc:fabric-language-kotlin:${project.property("kotlin_loader_version")}") + + #if (${VERSIONS.useFabricApi}) + implementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}") + #end #else - mappings("net.fabricmc:yarn:${project.property("yarn_mappings")}:v2") -#end - modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}") + #if (${VERSIONS.useOfficialMappings}) + mappings(loom.officialMojangMappings()) + #else + mappings("net.fabricmc:yarn:${project.property("yarn_mappings")}:v2") + #end + modImplementation("net.fabricmc:fabric-loader:${project.property("loader_version")}") modImplementation("net.fabricmc:fabric-language-kotlin:${project.property("kotlin_loader_version")}") -#if (${VERSIONS.useFabricApi}) - modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}") + #if (${VERSIONS.useFabricApi}) + modImplementation("net.fabricmc.fabric-api:fabric-api:${project.property("fabric_version")}") + #end #end }