Skip to content

Commit

Permalink
Do not throw exception when secrets are not available for now
Browse files Browse the repository at this point in the history
  • Loading branch information
lijamie98 committed Nov 27, 2024
1 parent 8b5ac64 commit 80679d3
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions wallet-sdk/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -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")
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 80679d3

Please sign in to comment.