From 236f963da824457194f7164d4c7dbb1a08bc2196 Mon Sep 17 00:00:00 2001 From: Jocelyne Date: Mon, 28 Aug 2023 15:19:39 +0200 Subject: [PATCH] debugging signing --- .../src/main/kotlin/org/jetbrains/exposed/gradle/Publishing.kt | 3 +++ 1 file changed, 3 insertions(+) diff --git a/buildSrc/src/main/kotlin/org/jetbrains/exposed/gradle/Publishing.kt b/buildSrc/src/main/kotlin/org/jetbrains/exposed/gradle/Publishing.kt index 7e4ee7b6fe..890ab9b143 100644 --- a/buildSrc/src/main/kotlin/org/jetbrains/exposed/gradle/Publishing.kt +++ b/buildSrc/src/main/kotlin/org/jetbrains/exposed/gradle/Publishing.kt @@ -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("signing") { useInMemoryPgpKeys(keyId, signingKey.replace(" ", "\r\n"), signingKeyPassphrase) sign(this@signPublicationIfKeyPresent) } + } else { + println("DEBUG: Signing key problem") } }