Fix CurseForge publishing

This commit is contained in:
Martin Prokoph
2024-02-22 15:08:20 +01:00
parent f3fb019bca
commit 849e089ff2
2 changed files with 6 additions and 6 deletions

View File

@@ -77,10 +77,10 @@ unifiedPublishing {
gameLoaders = ["neoforge"]
mainPublication remapJar
var CURSE_API_KEY = project.findProperty("CURSE_API_KEY") ?: System.getenv("CURSE_API_KEY")
if (CURSE_API_KEY != null) {
var CURSEFORGE_TOKEN = project.findProperty("CURSEFORGE_TOKEN") ?: System.getenv("CURSEFORGE_TOKEN")
if (CURSEFORGE_TOKEN != null) {
curseforge {
token = CURSE_API_KEY
token = CURSEFORGE_TOKEN
id = rootProject.curseforge_id
gameVersions.addAll "Java 17", project.minecraft_version
}