Skip to content

Commit 8929766

Browse files
authored
fix: ensure publish tasks run after sign tasks (#157)
1 parent 7618f00 commit 8929766

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

publish.gradle

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ signing {
9090
sign publishing.publications
9191
}
9292

93+
// Ensure that the publish tasks run after the sign tasks, otherwise gradle will complain
94+
tasks.matching { it.name.startsWith('publish') }.all { publishTask ->
95+
tasks.matching { it.name.startsWith('sign') }.all { signTask ->
96+
publishTask.mustRunAfter(signTask)
97+
}
98+
}
99+
93100
javadoc {
94101
options.addBooleanOption('html5', true)
95102
}

0 commit comments

Comments
 (0)