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

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

View File

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