Skip to content

Commit 2151dcc

Browse files
authored
Update of Gradle Version to 8.1 revealed the problem that publish task uses the output of sign task as an error. This commit sets the explicit dependency between Publish and Sign tasks. (#335)
1 parent 7b764f9 commit 2151dcc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

gradle/publishing.gradle

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ publishing {
3030
repositories { // this: closure
3131
PublishingKt.configureMavenPublication(delegate, project)
3232
}
33-
33+
3434
if (!isMultiplatform) {
3535
// Configure java publications for non-MPP projects
3636
publications {
@@ -61,4 +61,8 @@ publishing {
6161
it.artifact(javadocJar)
6262
}
6363
}
64+
65+
tasks.withType(PublishToMavenRepository).configureEach {
66+
dependsOn(tasks.withType(Sign))
67+
}
6468
}

0 commit comments

Comments
 (0)