Skip to content

Commit

Permalink
Added workaround for Gradle 8 publishing issues with signing
Browse files Browse the repository at this point in the history
  • Loading branch information
jamowei committed Jul 27, 2023
1 parent 0a9a7c2 commit 31aa997
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions publishing.gradle.kts
Expand Up @@ -29,6 +29,16 @@ val javadocJar by tasks.creating(Jar::class) {
from(tasks.named("dokkaHtml"))
}

/*-
* A Kotlin/MPP work-around for https://youtrack.jetbrains.com/issue/KT-46466.
*
* See also https://github.com/gradle/gradle/issues/17043.
*/
val signingTasks = tasks.withType<Sign>()
tasks.withType<AbstractPublishToMaven>().configureEach {
dependsOn(signingTasks)
}

publishing {
repositories {
maven {
Expand Down

0 comments on commit 31aa997

Please sign in to comment.