From 8a839bd489f709c1ae8ed1db19515c06401a005e Mon Sep 17 00:00:00 2001 From: Bada774 <78479375+Bada774@users.noreply.github.com> Date: Tue, 10 Mar 2026 05:52:25 +0300 Subject: [PATCH 1/2] Invert conditions for publishing with changelog (#52) Fix the changelong not being added to the published version --- gradle/scripts/publishing.gradle | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/gradle/scripts/publishing.gradle b/gradle/scripts/publishing.gradle index c7897c93..5d24fb74 100644 --- a/gradle/scripts/publishing.gradle +++ b/gradle/scripts/publishing.gradle @@ -47,7 +47,7 @@ if (propertyBool('publish_to_curseforge')) { addGameVersion 'Forge' addGameVersion '1.12.2' releaseType = propertyString('release_type') - if (!propertyBool('publish_with_changelog')) { + if (propertyBool('publish_with_changelog')) { changelog = parserChangelog() changelogType = 'markdown' } @@ -96,7 +96,7 @@ if (propertyBool('publish_to_modrinth')) { } } } - if (!propertyBool('publish_with_changelog')) { + if (propertyBool('publish_with_changelog')) { changelog = parserChangelog() } if (propertyBool('modrinth_sync_readme')) { @@ -104,4 +104,4 @@ if (propertyBool('publish_to_modrinth')) { tasks.modrinth.dependsOn(tasks.modrinthSyncBody) } } -} \ No newline at end of file +} From e64d9e237e1e6292f1cc357a2c268d7e32743214 Mon Sep 17 00:00:00 2001 From: Bada774 <78479375+Bada774@users.noreply.github.com> Date: Sat, 21 Mar 2026 15:52:32 +0200 Subject: [PATCH 2/2] Fix mainArtifact reference to use archiveFile (#54) --- gradle/scripts/publishing.gradle | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/scripts/publishing.gradle b/gradle/scripts/publishing.gradle index 5d24fb74..6edf1dc7 100644 --- a/gradle/scripts/publishing.gradle +++ b/gradle/scripts/publishing.gradle @@ -51,7 +51,7 @@ if (propertyBool('publish_to_curseforge')) { changelog = parserChangelog() changelogType = 'markdown' } - mainArtifact tasks.reobfJar, { + mainArtifact tasks.reobfJar.archiveFile.get().asFile, { displayName = "${propertyString('mod_name')} ${propertyString('mod_version')}" if (propertyBool('use_mixins')) { relations {