Skip to content

Commit

Permalink
fix: maven publishing due to KMP/gradle bug
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Dozor committed Feb 4, 2024
1 parent 66fb086 commit 6529c6b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,12 @@ allprojects {
extra["signing.keyId"] = System.getenv("mavenSigningKeyId")
extra["signing.secretKeyRingFile"] = System.getenv("mavenSigningKeyRingFile")
extra["signing.password"] = System.getenv("mavenSigningKeyPassword")

// workaround for a AGP/KMP bug
// https://youtrack.jetbrains.com/issue/KT-46466
// https://github.com/gradle/gradle/issues/26091
tasks.withType<AbstractPublishToMaven>().configureEach {
val signingTasks = tasks.withType<Sign>()
mustRunAfter(signingTasks)
}
}

0 comments on commit 6529c6b

Please sign in to comment.