From de371b6ec6b4fc27f5accb30890a5ce7b3d9d6a2 Mon Sep 17 00:00:00 2001 From: Ilya Muradyan Date: Mon, 8 Feb 2021 22:04:06 +0300 Subject: [PATCH] Fix publishing to Sonatype #4 --- .../org/jetbrains/kotlinx/jupyter/publishing/publication.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kotlin-jupyter-publish/src/main/kotlin/org/jetbrains/kotlinx/jupyter/publishing/publication.kt b/kotlin-jupyter-publish/src/main/kotlin/org/jetbrains/kotlinx/jupyter/publishing/publication.kt index 4836a367a..ad9724094 100644 --- a/kotlin-jupyter-publish/src/main/kotlin/org/jetbrains/kotlinx/jupyter/publishing/publication.kt +++ b/kotlin-jupyter-publish/src/main/kotlin/org/jetbrains/kotlinx/jupyter/publishing/publication.kt @@ -66,7 +66,7 @@ fun Project.addPublication(configuration: ArtifactPublication.() -> Unit) { val privateKeyFile = keysDir.resolve("private.key") val publicKeyFile = keysDir.resolve("public.key") - if (privateKeyFile.exists() || publicKeyFile.exists()) return@doLast + //if (privateKeyFile.exists() || publicKeyFile.exists()) return@doLast println("Private len: ${signingPrivateKey.length}\n\nPublic: $signingKey") @@ -202,7 +202,7 @@ fun Project.addPublication(configuration: ArtifactPublication.() -> Unit) { sign(extensions.getByName("publishing").publications[publicationName]) @Suppress("UnstableApiUsage") - useInMemoryPgpKeys(signingKey, signingPrivateKey) + useInMemoryPgpKeys(signingKey, signingPrivateKey, signingKeyPassphrase) } } }