Skip to content

Commit

Permalink
Fix publishing to Sonatype #4
Browse files Browse the repository at this point in the history
  • Loading branch information
ileasile committed Feb 8, 2021
1 parent 5ce9d8b commit de371b6
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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")

Expand Down Expand Up @@ -202,7 +202,7 @@ fun Project.addPublication(configuration: ArtifactPublication.() -> Unit) {
sign(extensions.getByName<PublishingExtension>("publishing").publications[publicationName])

@Suppress("UnstableApiUsage")
useInMemoryPgpKeys(signingKey, signingPrivateKey)
useInMemoryPgpKeys(signingKey, signingPrivateKey, signingKeyPassphrase)
}
}
}

0 comments on commit de371b6

Please sign in to comment.