Skip to content

Commit

Permalink
ok I read the docs, but there isN'T a syntax error
Browse files Browse the repository at this point in the history
  • Loading branch information
Foxikle committed Jun 13, 2024
1 parent 3db52d6 commit abb5691
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -87,8 +87,10 @@ publishing {
// Use providers to get the properties or fallback to environment variables
println(System.getenv("REPO_PASSWORD").length)
println("pass: " + System.getenv("REPO_PASSWORD") + " | user: " + System.getenv("REPO_USERNAME"))
val user = providers.gradleProperty("username").orElse(System.getenv("REPO_USERNAME").orEmpty())
val pass = providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD").orEmpty())
val user =
providers.gradleProperty("username").orElse(System.getenv("REPO_USERNAME")).orElse("null")
val pass =
providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD")).orElse("null")
credentials {
username = user.get()
password = pass.get()
Expand Down

0 comments on commit abb5691

Please sign in to comment.