Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion fabric/.mcdev.template.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
{
Expand Down
26 changes: 19 additions & 7 deletions fabric/build.gradle.ft
Original file line number Diff line number Diff line change
@@ -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'
}

Expand Down Expand Up @@ -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
}

Expand Down
27 changes: 20 additions & 7 deletions fabric/build.gradle.kts.ft
Original file line number Diff line number Diff line change
Expand Up @@ -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")
}

Expand Down Expand Up @@ -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
}

Expand Down