Skip to content

Commit

Permalink
fix gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
MORIMORI0317 committed Feb 10, 2024
1 parent 9dd1562 commit 507719b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion forge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,9 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
mainFile.releaseType = "${project.release_type}"
mainFile.displayName = uploadMainName

mainFile.addGameVersion(project.support_versions.split(",").toArray())
project.support_versions.split(",").each {
String version -> mainFile.addGameVersion(version)
}
mainFile.addJavaVersion('Java 17')
mainFile.addModLoader('Forge')
mainFile.addGameVersion('Client')
Expand Down
4 changes: 3 additions & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,9 @@ task publishCurseForge(type: net.darkhax.curseforgegradle.TaskPublishCurseForge)
mainFile.releaseType = "${project.release_type}"
mainFile.displayName = uploadMainName

mainFile.addGameVersion(project.support_versions.split(",").toArray())
project.support_versions.split(",").each {
String version -> mainFile.addGameVersion(version)
}
mainFile.addJavaVersion('Java 17')
mainFile.addModLoader('NeoForge')
mainFile.addGameVersion('Client')
Expand Down

0 comments on commit 507719b

Please sign in to comment.