Skip to content

Commit

Permalink
Try to fix deploying
Browse files Browse the repository at this point in the history
  • Loading branch information
duruer committed Dec 5, 2024
1 parent 64d8341 commit 266a0e7
Showing 1 changed file with 12 additions and 14 deletions.
26 changes: 12 additions & 14 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -176,22 +176,20 @@ publishing {
}

deployer {
if (System.getenv("OSSRH_USERNAME") != null && System.getenv("OSSRH_PASSWORD") != null) {
centralPortalSpec {
// Take these credentials from the Generate User Token page at https://central.sonatype.com/account
auth.user.set(secret(System.getenv("OSSRH_USERNAME")))
auth.password.set(secret(System.getenv("OSSRH_PASSWORD")))

// Signing is required
signing.key.set(
secret(
String(
Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY").replace("\n", ""))
)
centralPortalSpec {
// Take these credentials from the Generate User Token page at https://central.sonatype.com/account
auth.user.set(secret(System.getenv("OSSRH_USERNAME")))
auth.password.set(secret(System.getenv("OSSRH_PASSWORD")))

// Signing is required
signing.key.set(
secret(
String(
Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY").replace("\n", ""))
)
)
signing.password.set(secret(System.getenv("GPG_PASSPHRASE")))
}
)
signing.password.set(secret(System.getenv("GPG_PASSPHRASE")))
}
}

Expand Down

0 comments on commit 266a0e7

Please sign in to comment.