diff --git a/build.gradle.kts b/build.gradle.kts index 2a031c6c..20645adb 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -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()