diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 9cf1e57ec3f4f..dd3284cc32168 100644 --- a/buildSrc/build.gradle +++ b/buildSrc/build.gradle @@ -260,10 +260,7 @@ if (project != rootProject) { */ afterEvaluate { generatePomFileForPluginMavenPublication.enabled = false - tasks.named("validatePluginMavenPom").configure { - dependsOn("generatePomFileForNebulaPublication") - } - tasks.named("publishPluginMavenPublicationToMavenLocal").configure { + tasks.matching { it.name.contains("PluginMaven") }*.configure { dependsOn("generatePomFileForNebulaPublication") } }