Skip to content

Commit 85ccb4b

Browse files
committed
Fix task order when releasing to Nexus
1 parent de6d21d commit 85ccb4b

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt

+4
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,10 @@ class SonatypePlugin : Plugin<Project> {
8080
addParentPublishToNexusTasks()
8181

8282
disallowPublishTasks()
83+
84+
tasks.named("closeRepository") {
85+
mustRunAfter("publishToNexus")
86+
}
8387
}
8488
}
8589

0 commit comments

Comments
 (0)