From 30c31f940079c1d2b3caf2ed57b7d1a1a9fd0c82 Mon Sep 17 00:00:00 2001 From: Andriy Redko Date: Tue, 30 Nov 2021 18:41:17 -0500 Subject: [PATCH] Support Gradle 7. More reliable tasks dependencies for Maven plugins publishing (#1630) Signed-off-by: Andriy Redko --- buildSrc/build.gradle | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle index 9cf1e57ec3f..dd3284cc321 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") } }