From 1dba425c9f7bf7d6e2f1847148b8ca5b250538dc Mon Sep 17 00:00:00 2001
From: Michael Avoyan <michael.avoyan.dev@gmail.com>
Date: Tue, 25 Jun 2024 12:00:16 +0300
Subject: [PATCH] Update publish-core.gradle

---
 publish-core.gradle | 18 +++++++++---------
 1 file changed, 9 insertions(+), 9 deletions(-)

diff --git a/publish-core.gradle b/publish-core.gradle
index 7e2ac9c..088263b 100644
--- a/publish-core.gradle
+++ b/publish-core.gradle
@@ -23,19 +23,19 @@ if (propertiesFile.exists()) {
 }
 
 ext {
-    signingKeyId = System.getenv("ANDROID_NEXUS_SIGNING_KEY_ID") ?: properties["signingKeyId"]
-    signingPassword = System.getenv("ANDROID_NEXUS_SIGNING_PASSWORD") ?: properties["signingPassword"]
-//    ossrhUsername = System.getenv("ANDROID_NEXUS_OSSRH_USERNAME") ?: properties["ossrhUsername"]
-//    ossrhPassword = System.getenv("ANDROID_NEXUS_OSSRH_PASSWORD") ?: properties["ossrhPassword"]
-    ossrhTokenUsername = System.getenv("ANDROID_NEXUS_OSSRH_TOKEN_USERNAME") ?: properties["ossrhTokenUsername"]
-    ossrhTokenPassword = System.getenv("ANDROID_NEXUS_OSSRH_TOKEN_PASSWORD") ?: properties["ossrhTokenPassword"]
-    sonatypeStagingProfileId = System.getenv("ANDROID_NEXUS_STAGING_PROFILE_ID") ?: properties["stagingProfileId"]
-    signingPrivateKey = System.getenv("ANDROID_NEXUS_PRIVATE_KEY") ?: properties["signingPrivateKey"]
+    signingKeyId = (System.getenv("ANDROID_NEXUS_SIGNING_KEY_ID") ?: properties["signingKeyId"]) ?: println("signingKeyId was NOT found")
+    signingPassword = (System.getenv("ANDROID_NEXUS_SIGNING_PASSWORD") ?: properties["signingPassword"]) ?: println("signingPassword was NOT found")
+//    ossrhUsername = (System.getenv("ANDROID_NEXUS_OSSRH_USERNAME") ?: properties["ossrhUsername"]) ?: println("ossrhUsername was NOT found")
+//    ossrhPassword = (System.getenv("ANDROID_NEXUS_OSSRH_PASSWORD") ?: properties["ossrhPassword"]) ?: println("ossrhPassword was NOT found")
+    ossrhTokenUsername = (System.getenv("ANDROID_NEXUS_OSSRH_TOKEN_USERNAME") ?: properties["ossrhTokenUsername"]) ?: println("ossrhTokenUsername was NOT found")
+    ossrhTokenPassword = (System.getenv("ANDROID_NEXUS_OSSRH_TOKEN_PASSWORD") ?: properties["ossrhTokenPassword"]) ?: println("ossrhTokenPassword was NOT found")
+    sonatypeStagingProfileId = (System.getenv("ANDROID_NEXUS_STAGING_PROFILE_ID") ?: properties["stagingProfileId"]) ?: println("stagingProfileId was NOT found")
+    signingPrivateKey = (System.getenv("ANDROID_NEXUS_PRIVATE_KEY") ?: properties["signingPrivateKey"]) ?: println("signingPrivateKey was NOT found")
 }
 
 // println("signingKeyId: ${signingKeyId}")
 // println("signingPassword: ${signingPassword}")
-// println("ossrhUsername: ${ossrhUsername}")
+//
 // println("ossrhPassword: ${ossrhPassword}")
 // println("sonatypeStagingProfileId: ${sonatypeStagingProfileId}")
 // println("signingPrivateKey: ${signingPrivateKey}")