Skip to content

Commit

Permalink
Update of Gradle Version to 8.1 revealed the problem that publish tas…
Browse files Browse the repository at this point in the history
…k uses the output of sign task as an error. This commit sets the explicit dependency between Publish and Sign tasks. (#335)
  • Loading branch information
mvicsokolova authored Aug 14, 2023
1 parent 7b764f9 commit 2151dcc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gradle/publishing.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ publishing {
repositories { // this: closure
PublishingKt.configureMavenPublication(delegate, project)
}

if (!isMultiplatform) {
// Configure java publications for non-MPP projects
publications {
Expand Down Expand Up @@ -61,4 +61,8 @@ publishing {
it.artifact(javadocJar)
}
}

tasks.withType(PublishToMavenRepository).configureEach {
dependsOn(tasks.withType(Sign))
}
}

0 comments on commit 2151dcc

Please sign in to comment.