diff --git a/buildSrc/src/main/kotlin/publish.gradle.kts b/buildSrc/src/main/kotlin/publish.gradle.kts index 8d67c51..5eefdd1 100644 --- a/buildSrc/src/main/kotlin/publish.gradle.kts +++ b/buildSrc/src/main/kotlin/publish.gradle.kts @@ -85,6 +85,11 @@ signing { val commonPublications = arrayOf("jvm", "js", "wasm32", "kotlinMultiplatform") publishing.publications.matching { commonPublications.contains(it.name) }.all { tasks.withType() - .matching { it.publication == this@all } + .matching { + // TODO: Move back to checking for publication once this issue is fixed: + // https://github.com/gradle-nexus/publish-plugin/issues/103 + // it.publication == this@all + it.name.matches("publish(Jvm|Js|Wasm32|KotlinMultiplatform).*".toRegex()) + } .configureEach { onlyIf { findProperty("publishCommonTargets") == "true" } } }