Skip to content

Commit

Permalink
Merge pull request #59 from momentohq/kmp-signing-bug
Browse files Browse the repository at this point in the history
fix: workaround for multiplatform/gradle 8 signing bug
  • Loading branch information
nand4011 authored Jan 12, 2024
2 parents 6788893 + 92ccf38 commit 61016b0
Showing 1 changed file with 5 additions and 7 deletions.
12 changes: 5 additions & 7 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -164,11 +164,9 @@ if (signingKey != null) {
}
}

afterEvaluate {
tasks.named("publishAndroidReleasePublicationToSonatypeRepository").configure {
mustRunAfter(":signJvmPublication", ":signAndroidReleasePublication")
}
tasks.named("publishJvmPublicationToSonatypeRepository").configure {
mustRunAfter(":signJvmPublication", ":signAndroidReleasePublication")
}
// Fix Gradle error about signing tasks using publishing task outputs without explicit dependencies
// https://github.com/gradle/gradle/issues/26091
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}

0 comments on commit 61016b0

Please sign in to comment.