Skip to content

Commit b7d7466

Browse files
committed
Don't rely on publication to disable unappreciable publishing tasks
It's not being set at the moment, issue created here: gradle-nexus/publish-plugin#103
1 parent 6ed55ae commit b7d7466

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

buildSrc/src/main/kotlin/publish.gradle.kts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,11 @@ signing {
8585
val commonPublications = arrayOf("jvm", "js", "wasm32", "kotlinMultiplatform")
8686
publishing.publications.matching { commonPublications.contains(it.name) }.all {
8787
tasks.withType<AbstractPublishToMaven>()
88-
.matching { it.publication == this@all }
88+
.matching {
89+
// TODO: Move back to checking for publication once this issue is fixed:
90+
// https://github.com/gradle-nexus/publish-plugin/issues/103
91+
// it.publication == this@all
92+
it.name.matches("publish(Jvm|Js|Wasm32|KotlinMultiplatform).*".toRegex())
93+
}
8994
.configureEach { onlyIf { findProperty("publishCommonTargets") == "true" } }
9095
}

0 commit comments

Comments
 (0)