diff --git a/build-logic/src/main/kotlin/rsocketbuild.publication.gradle.kts b/build-logic/src/main/kotlin/rsocketbuild.publication.gradle.kts index 53b380ef..b06a1045 100644 --- a/build-logic/src/main/kotlin/rsocketbuild.publication.gradle.kts +++ b/build-logic/src/main/kotlin/rsocketbuild.publication.gradle.kts @@ -41,8 +41,8 @@ if (versionSuffix != null) { val javadocJar by tasks.registering(Jar::class) { archiveClassifier.set("javadoc") } // this is somewhat a hack because we have a single javadoc artifact which is used for all publications -tasks.withType().configureEach { mustRunAfter(javadocJar) } -tasks.withType().configureEach { mustRunAfter(tasks.withType()) } +tasks.withType().configureEach { dependsOn(javadocJar) } +tasks.withType().configureEach { dependsOn(tasks.withType()) } publishing { publications.withType {