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") } }