From 0569f181aea94bfca2f1ca30d98e993b176a7924 Mon Sep 17 00:00:00 2001 From: Aizistral Date: Sun, 25 Jan 2026 03:32:07 +0100 Subject: More publishing suffering --- Fabric/build.gradle | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) (limited to 'Fabric/build.gradle') diff --git a/Fabric/build.gradle b/Fabric/build.gradle index 66c12f9..701031a 100644 --- a/Fabric/build.gradle +++ b/Fabric/build.gradle @@ -1,5 +1,5 @@ plugins { - id 'net.fabricmc.fabric-loom-remap' version "${loom_version}" + id 'fabric-loom' version "${loom_version}" id 'maven-publish' id "com.modrinth.minotaur" version "2.+" id "com.matthewprenger.cursegradle" version "1.4.0" @@ -66,6 +66,7 @@ curseforge { releaseType = 'release' changelogType = 'markdown' changelog = file('../CHANGELOG.md') + mainArtifact(remapJar) addGameVersion '1.16.4' addGameVersion '1.16.5' @@ -82,10 +83,10 @@ modrinth { token = findProperty('modrinthKey') ?: '0' projectId = "z440MEwJ" versionNumber = project.version - versionName = "No Chat Restrictions v" + project.version + versionName = "No Chat Restrictions " + project.version versionType = "release" changelog = rootProject.file("../CHANGELOG.md").text - uploadFile = jar + uploadFile = remapJar gameVersions = [ '1.16.4', '1.16.5' ] loaders = [ 'fabric' ] @@ -94,6 +95,15 @@ modrinth { } } +afterEvaluate { + tasks.named('modrinth') { + dependsOn(remapJar) + } + tasks.named('curseforge') { + dependsOn(remapJar) + } +} + task upload { dependsOn('modrinth') dependsOn('curseforge') -- cgit v1.2.3