Skip to content

Commit 42aca8d

Browse files
committed
Task publishMavenPublication should be declared an explicit dependency on Sign
Closes gh-842
1 parent c88f186 commit 42aca8d

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

build.gradle

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,11 @@ subprojects { project ->
233233
onlyIf { isReleaseVersion }
234234
}
235235

236+
TaskCollection<Sign> signingTasks = tasks.withType(Sign)
237+
tasks.withType(PublishToMavenRepository).configureEach {
238+
mustRunAfter(signingTasks)
239+
}
240+
236241
javadoc {
237242
if (JavaVersion.current().isJava9Compatible()) {
238243
options.addBooleanOption('html5', true)

0 commit comments

Comments
 (0)