Skip to content

Commit f408747

Browse files
authored
Merge pull request #812 from square/rick/make_publish_explicitly_depend_upon_sign
make `Publish` tasks explicitly depend upon `Sign` tasks
2 parents c4f9884 + 2b0b100 commit f408747

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

build.gradle.kts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,14 @@ subprojects {
7878
}
7979
}
8080

81+
// Publish tasks use the output of Sign tasks, but don't actually declare a dependency upon it,
82+
// which then causes execution optimizations to be disabled. If this target project has Publish
83+
// tasks, explicitly make them run after Sign.
84+
subprojects {
85+
tasks.matching { it is AbstractPublishToMaven }
86+
.all { mustRunAfter(tasks.matching { it is Sign }) }
87+
}
88+
8189
allprojects {
8290

8391
configurations.all {

0 commit comments

Comments
 (0)