Skip to content

Commit

Permalink
fix: Apply workaround to signing multiplatform projects (#57)
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarciabnz authored Apr 12, 2024
1 parent b9b5f03 commit 2d508e9
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions buildSrc/src/main/kotlin/maven-publish-conventions.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -70,3 +70,10 @@ signing {
useInMemoryPgpKeys(signingPrivateKey, signingPassword)
sign(publishing.publications)
}

// Fix Gradle warning 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 2d508e9

Please sign in to comment.