Skip to content

Commit

Permalink
chore(build): fix fetching from .env
Browse files Browse the repository at this point in the history
SUITEDEV-35028

Co-authored-by: davidSchuppa <[email protected]>
  • Loading branch information
matusekma and davidSchuppa committed Mar 14, 2024
1 parent 5efa86c commit 88577e8
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@ fun versionData() {
val sdkVersion by extra(v)

ext["signing.keyId"] =
env.fetch("SONATYPE_SIGNING_KEY_ID") ?: System.getenv("SONATYPE_SIGNING_KEY_ID")
env.fetchOrNull("SONATYPE_SIGNING_KEY_ID") ?: System.getenv("SONATYPE_SIGNING_KEY_ID")
ext["signing.password"] =
env.fetch("SONATYPE_SIGNING_PASSWORD") ?: System.getenv("SONATYPE_SIGNING_PASSWORD")
env.fetchOrNull("SONATYPE_SIGNING_PASSWORD") ?: System.getenv("SONATYPE_SIGNING_PASSWORD")
ext["signing.secretKeyRingFile"] = "./secring.asc.gpg"


Expand Down Expand Up @@ -90,10 +90,10 @@ nexusPublishing {
packageGroup = "com.emarsys"
repositories {
sonatype {
stagingProfileId = env.fetch("SONATYPE_STAGING_PROFILE_ID")
stagingProfileId = env.fetchOrNull("SONATYPE_STAGING_PROFILE_ID")
?: System.getenv("SONATYPE_STAGING_PROFILE_ID")
username = env.fetch("OSSRH_USERNAME") ?: System.getenv("OSSRH_USERNAME")
password = env.fetch("OSSRH_PASSWORD") ?: System.getenv("OSSRH_PASSWORD")
username = env.fetchOrNull("OSSRH_USERNAME") ?: System.getenv("OSSRH_USERNAME")
password = env.fetchOrNull("OSSRH_PASSWORD") ?: System.getenv("OSSRH_PASSWORD")
}
}
}

0 comments on commit 88577e8

Please sign in to comment.