Skip to content

Commit

Permalink
build: Fix NeoForge jarjar artifact upload
Browse files Browse the repository at this point in the history
  • Loading branch information
BlayTheNinth committed Aug 13, 2024
1 parent 26e04f0 commit b4c9e21
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand All @@ -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
Expand Down

0 comments on commit b4c9e21

Please sign in to comment.