Skip to content

Commit 30ca280

Browse files
authoredJan 9, 2023
Merge pull request #112 from reduxkotlin/patjackson52-fix-publish
Update publish.gradle to fix signing of artifacts
2 parents 67b150e + c87fd18 commit 30ca280

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed
 

‎gradle/publish.gradle

+4-4
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,10 @@ task javadocsJar(type: Jar, dependsOn: dokka) {
7676

7777
signing {
7878
required { isReleaseBuild() /*&& gradle.taskGraph.hasTask("uploadArchives") */ }
79-
// def signingKey = findProperty("GPG_SECRET") ?: System.getenv('GPG_SECRET') ?: ""
80-
// def signingPassword = findProperty("GPG_SIGNING_PASSWORD") ?: System.getenv('GPG_SIGNING_PASSWORD') ?: ""
81-
// useInMemoryPgpKeys(signingKey, signingPassword)
82-
// sign(publishing.publications)
79+
def signingKey = findProperty("GPG_SECRET") ?: System.getenv('GPG_SECRET') ?: ""
80+
def signingPassword = findProperty("GPG_SIGNING_PASSWORD") ?: System.getenv('GPG_SIGNING_PASSWORD') ?: ""
81+
useInMemoryPgpKeys(signingKey, signingPassword)
82+
sign(publishing.publications)
8383
}
8484

8585
publishing {

0 commit comments

Comments
 (0)