diff --git a/secretk/build.gradle.kts b/secretk/build.gradle.kts index ffa04ae..7979252 100644 --- a/secretk/build.gradle.kts +++ b/secretk/build.gradle.kts @@ -1,4 +1,3 @@ -import com.vanniktech.maven.publish.MavenPublishBaseExtension import com.vanniktech.maven.publish.SonatypeHost import org.jetbrains.kotlin.gradle.plugin.mpp.KotlinNativeTarget @@ -245,9 +244,10 @@ tasks.clean { } // https://youtrack.jetbrains.com/issue/KT-46466 -val signingTasks = tasks.withType() +val dependsOnTasks = mutableListOf() tasks.withType().configureEach { - dependsOn(signingTasks) + dependsOnTasks.add(this.name.replace("publish", "sign").replaceAfter("Publication", "")) + dependsOn(dependsOnTasks) } plugins.withId("com.vanniktech.maven.publish.base") {