diff --git a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt index bdb3661..9a555bf 100644 --- a/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt +++ b/sonatype/src/main/kotlin/com/bakdata/gradle/SonatypePlugin.kt @@ -80,6 +80,10 @@ class SonatypePlugin : Plugin { addParentPublishToNexusTasks() disallowPublishTasks() + + tasks.named("closeRepository") { + mustRunAfter("publishToNexus") + } } }