diff --git a/build.gradle.kts b/build.gradle.kts index 09bf99a..0300207 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -40,6 +40,15 @@ tasks.withType { kotlinOptions.freeCompilerArgs = listOf("-Xopt-in=kotlin.RequiresOptIn") } +signing { + useInMemoryPgpKeys( + findProperty("signingKey").toString(), + findProperty("signingPassword").toString() + ) + + sign(publishing.publications) +} + publishing { publications { create("ktor-onelogin-saml") { @@ -75,15 +84,6 @@ publishing { } } -signing { - val secretKey = providers.environmentVariable("SIGNING_KEY") - val signingPassword = providers.environmentVariable("SIGNING_PASSWORD") - if (secretKey.isPresent && signingPassword.isPresent) - useInMemoryPgpKeys(secretKey.get(), signingPassword.get()) - - sign(publishing.publications) -} - nexusPublishing { repositories { sonatype {