diff --git a/build.gradle.kts b/build.gradle.kts index 8b04cc1..6e37a90 100755 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -18,7 +18,7 @@ plugins { application `maven-publish` signing - id("io.deepmedia.tools.deployer") version "0.15.0" + id("com.tddworks.central-portal-publisher") version "0.0.5" } group = "dev.parsek" @@ -175,29 +175,40 @@ publishing { } } -deployer { - centralPortalSpec { - // Take these credentials from the Generate User Token page at https://central.sonatype.com/account - auth.user.set(secret(System.getenv("OSSRH_USERNAME"))) - auth.password.set(secret(System.getenv("OSSRH_PASSWORD"))) - - // Signing is required - signing.key.set( - secret( - String( - Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY").replace("\n", "")) - ) - ) - ) - signing.password.set(secret(System.getenv("GPG_PASSPHRASE"))) +sonatypePortalPublisher { + authentication { + username = System.getenv("OSSRH_USERNAME") + password = System.getenv("OSSRH_PASSWORD") } -} -java { - withJavadocJar() - withSourcesJar() + settings { + autoPublish = false + } } +//deployer { +// centralPortalSpec { +// // Take these credentials from the Generate User Token page at https://central.sonatype.com/account +// auth.user.set(secret(System.getenv("OSSRH_USERNAME"))) +// auth.password.set(secret(System.getenv("OSSRH_PASSWORD"))) +// +// // Signing is required +// signing.key.set( +// secret( +// String( +// Base64.getDecoder().decode(System.getenv("GPG_PRIVATE_KEY").replace("\n", "")) +// ) +// ) +// ) +// signing.password.set(secret(System.getenv("GPG_PASSPHRASE"))) +// } +//} + +//java { +// withJavadocJar() +// withSourcesJar() +//} + signing { val signingKey = System.getenv("GPG_PRIVATE_KEY")?.let { String(Base64.getDecoder().decode(it.replace("\n", ""))) } val signingPassphrase = System.getenv("GPG_PASSPHRASE")