From 80679d3fb230e1a77290c87fe28fad16d3a6416a Mon Sep 17 00:00:00 2001 From: Jamie Li Date: Wed, 27 Nov 2024 10:39:12 -0800 Subject: [PATCH] Do not throw exception when secrets are not available for now --- wallet-sdk/build.gradle.kts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/wallet-sdk/build.gradle.kts b/wallet-sdk/build.gradle.kts index 6d365a7..a4ca060 100644 --- a/wallet-sdk/build.gradle.kts +++ b/wallet-sdk/build.gradle.kts @@ -1,5 +1,4 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile -import kotlin.system.exitProcess // The alias call in plugins scope produces IntelliJ false error which is suppressed here. @Suppress("DSL_SCOPE_VIOLATION") @@ -107,7 +106,7 @@ publishing { credentials { if (System.getenv("OSSRH_USER") == null || System.getenv("OSSRH_PASSWORD") == null) { println(">>> Please set OSSRH_USER and OSSRH_PASSWORD environment variables to continue publishing to Maven.<<<") - throw GradleException("OSSRH_USER and OSSRH_PASSWORD environment variables are not set.") +// throw GradleException("OSSRH_USER and OSSRH_PASSWORD environment variables are not set.") } else { username = System.getenv("OSSRH_USER") ?: return@credentials password = System.getenv("OSSRH_PASSWORD") ?: return@credentials