diff --git a/build.gradle.kts b/build.gradle.kts index 144b6a9..2528b5d 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -110,18 +110,12 @@ publishing { } fun Project.signPublicationsIfKeyPresent(publication: MavenPublication) { - // TODO: Clean signature mechanism when it's stable. - val signingKeyId: String? = System.getenv("SIGN_KEY_ID") val signingKey: String? = System.getenv("SIGN_KEY") val signingKeyPassphrase: String? = System.getenv("SIGN_KEY_PASSPHRASE") if (!signingKey.isNullOrBlank()) { extensions.configure("signing") { - if (signingKeyId?.isNotBlank() == true) { - useInMemoryPgpKeys(signingKeyId, signingKey, signingKeyPassphrase) - } else { - useInMemoryPgpKeys(signingKey, signingKeyPassphrase) - } + useInMemoryPgpKeys(signingKey, signingKeyPassphrase) sign(publication) } }