diff --git a/build.gradle.kts b/build.gradle.kts index bd68d6dd..2a031c6c 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -87,8 +87,8 @@ 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")) - val pass = providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD")) + val user = providers.gradleProperty("username").orElse(System.getenv("REPO_USERNAME").orEmpty()) + val pass = providers.gradleProperty("password").orElse(System.getenv("REPO_PASSWORD").orEmpty()) credentials { username = user.get() password = pass.get()