diff --git a/fabric/build.gradle b/fabric/build.gradle index 6cb5ca61..83dab876 100644 --- a/fabric/build.gradle +++ b/fabric/build.gradle @@ -134,7 +134,7 @@ jar { } curseforge { - apiKey = file("${rootDir}/curseforge_api_key.txt").exists() ? file("${rootDir}/curseforge_api_key.txt").text : '' + apiKey = file("${rootDir}/curseforge_api_key.txt").exists() ? file("${rootDir}/curseforge_api_key.txt").text.trim() : '' project { id = curse_id releaseType = release_type diff --git a/neoforge/build.gradle b/neoforge/build.gradle index 0b18021a..7c71e01b 100644 --- a/neoforge/build.gradle +++ b/neoforge/build.gradle @@ -117,7 +117,7 @@ jar { } curseforge { - apiKey = file("${rootDir}/curseforge_api_key.txt").exists() ? file("${rootDir}/curseforge_api_key.txt").text : '' + apiKey = file("${rootDir}/curseforge_api_key.txt").exists() ? file("${rootDir}/curseforge_api_key.txt").text.trim() : '' project { id = curse_id releaseType = release_type