Skip to content

Commit

Permalink
Added fix for signing
Browse files Browse the repository at this point in the history
  • Loading branch information
Reedyuk committed Jun 19, 2024
1 parent 7d846c7 commit e3702f9
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions library/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -156,10 +156,12 @@ publishing {

}

signing {
whenRequired { gradle.taskGraph.hasTask("publish") }
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications)
afterEvaluate {
signing {
whenRequired { gradle.taskGraph.hasTask("publish") }
val signingKey: String? by project
val signingPassword: String? by project
useInMemoryPgpKeys(signingKey, signingPassword)
sign(publishing.publications)
}
}

0 comments on commit e3702f9

Please sign in to comment.