Update buildscript for Fabric

This commit is contained in:
Aizistral
2026-03-27 20:40:39 +01:00
parent 2416b7513c
commit 4be80566dd

View File

@@ -1,5 +1,5 @@
plugins { plugins {
id 'fabric-loom' version "${loom_version}" id 'net.fabricmc.fabric-loom' version "${loom_version}"
id 'maven-publish' id 'maven-publish'
id "com.modrinth.minotaur" version "2.+" id "com.modrinth.minotaur" version "2.+"
id "com.matthewprenger.cursegradle" version "1.4.0" id "com.matthewprenger.cursegradle" version "1.4.0"
@@ -21,14 +21,14 @@ repositories {
} }
dependencies { dependencies {
// To change the versions see the gradle.properties file // Minecraft
minecraft "com.mojang:minecraft:${project.minecraft_version}" minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings loom.officialMojangMappings()
modImplementation "net.fabricmc:fabric-loader:${project.loader_version}" // Fabric Loader
implementation "net.fabricmc:fabric-loader:${project.loader_version}"
// Fabric API. This is technically optional, but you probably want it anyway. // Fabric API. This is technically optional, but you probably want it anyway.
modImplementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}" implementation "net.fabricmc.fabric-api:fabric-api:${project.fabric_api_version}"
} }
processResources { processResources {
@@ -66,7 +66,7 @@ curseforge {
releaseType = 'release' releaseType = 'release'
changelogType = 'markdown' changelogType = 'markdown'
changelog = file('../CHANGELOG.md') changelog = file('../CHANGELOG.md')
mainArtifact(remapJar) mainArtifact(jar)
addGameVersion project.minecraft_version addGameVersion project.minecraft_version
addGameVersion 'Fabric' addGameVersion 'Fabric'
@@ -85,7 +85,7 @@ modrinth {
versionName = "No Chat Restrictions " + project.version versionName = "No Chat Restrictions " + project.version
versionType = "release" versionType = "release"
changelog = rootProject.file("../CHANGELOG.md").text changelog = rootProject.file("../CHANGELOG.md").text
uploadFile = remapJar uploadFile = jar
gameVersions = [ gameVersions = [
project.minecraft_version project.minecraft_version
] ]
@@ -98,10 +98,10 @@ modrinth {
afterEvaluate { afterEvaluate {
tasks.named('modrinth') { tasks.named('modrinth') {
dependsOn(remapJar) dependsOn(jar)
} }
tasks.named('curseforge') { tasks.named('curseforge') {
dependsOn(remapJar) dependsOn(jar)
} }
} }