From b4c9e2151db9e9824745669c8cc61b70a7fe2519 Mon Sep 17 00:00:00 2001 From: BlayTheNinth <1933180+BlayTheNinth@users.noreply.github.com> Date: Tue, 13 Aug 2024 07:09:46 +0200 Subject: [PATCH] build: Fix NeoForge jarjar artifact upload --- neoforge/build.gradle | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 46be3319..0fe3f180 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -72,7 +72,7 @@ task curseforge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge) { apiToken = project.findProperty("curseforge.api_key") ?: System.getenv("CURSEFORGE_TOKEN") ?: "none" - def mainFile = upload(curseforge_forge_project_id, file("${project.buildDir}/libs/${archivesBaseName}-${version}-all.jar")) + def mainFile = upload(curseforge_forge_project_id, file("${project.buildDir}/libs/${archivesBaseName}-${version}.jar")) mainFile.changelog = rootProject.file('CHANGELOG.md').text project.minecraft_versions.split(',').toList().each { mainFile.addGameVersion(it) } mainFile.releaseType = "release" @@ -83,7 +83,7 @@ modrinth { projectId = project.modrinth_project_id versionType = project.modrinth_release_type versionNumber = project.version + "+neoforge-" + project.minecraft_version - uploadFile = jar.outputs.getFiles().asPath.replace(".jar", "-all.jar") + uploadFile = jar changelog = rootProject.file("CHANGELOG.md").text gameVersions = project.minecraft_versions.split(',').toList() syncBodyFrom = rootProject.file("modpage.md").text