Skip to content

Commit

Permalink
debugging signing
Browse files Browse the repository at this point in the history
  • Loading branch information
joc-a committed Aug 28, 2023
1 parent 7b5f871 commit 236f963
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,13 @@ fun MavenPublication.signPublicationIfKeyPresent(project: Project) {
val signingKey = System.getenv("exposed.sign.key.private")
val signingKeyPassphrase = System.getenv("exposed.sign.passphrase")
if (!signingKey.isNullOrBlank()) {
println("DEBUG: Signing key not null or blank")
project.extensions.configure<SigningExtension>("signing") {
useInMemoryPgpKeys(keyId, signingKey.replace(" ", "\r\n"), signingKeyPassphrase)
sign(this@signPublicationIfKeyPresent)
}
} else {
println("DEBUG: Signing key problem")
}
}

Expand Down

0 comments on commit 236f963

Please sign in to comment.