Skip to content

Commit

Permalink
fix: Signing of KMP artifacts (#71)
Browse files Browse the repository at this point in the history
  • Loading branch information
svenjacobs authored Sep 18, 2023
1 parent 632e3f9 commit d3aa025
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ publishing {
signing {
// Store key and password in environment variables
// ORG_GRADLE_PROJECT_signingKey and ORG_GRADLE_PROJECT_signingPassword
//
// Set locally for testing:
// export ORG_GRADLE_PROJECT_signingKey="$(gpg --export-secret-keys --armor mail@address)"
// export ORG_GRADLE_PROJECT_signingPassword="password"
val signingKey: String? by project
val signingPassword: String? by project

Expand All @@ -62,3 +66,10 @@ signing {
sign(publishing.publications)
}
}

// Fix for KMP signing issue
// https://github.com/gradle/gradle/issues/26091#issuecomment-1722947958
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

0 comments on commit d3aa025

Please sign in to comment.