Skip to content

Commit

Permalink
Trim curseforge key
Browse files Browse the repository at this point in the history
  • Loading branch information
ds58 committed Sep 16, 2024
1 parent 714bdeb commit b9c4c79
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fabric/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion neoforge/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b9c4c79

Please sign in to comment.