From bf02de3f2510e3dfbad8f43c602570e05c5c070f Mon Sep 17 00:00:00 2001 From: Christopher Cook Date: Fri, 21 Jul 2023 12:44:20 -0700 Subject: [PATCH] Extend publishXToMavenLocal explicit dependencies to all repo tasks Signed-off-by: Christopher Cook --- modules/lang-painless/build.gradle | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/modules/lang-painless/build.gradle b/modules/lang-painless/build.gradle index 3b3f2a7f9ca38..c645a4196cebb 100644 --- a/modules/lang-painless/build.gradle +++ b/modules/lang-painless/build.gradle @@ -84,8 +84,10 @@ shadowJar { tasks.validateNebulaPom.dependsOn tasks.generatePomFileForShadowPublication tasks.validateShadowPom.dependsOn tasks.generatePomFileForNebulaPublication -tasks.publishNebulaPublicationToMavenLocal.dependsOn tasks.generatePomFileForShadowPublication -tasks.publishShadowPublicationToMavenLocal.dependsOn tasks.generatePomFileForNebulaPublication +tasks.findAll { it.name.startsWith "publishNebulaPublication" } + .each { it.dependsOn tasks.generatePomFileForShadowPublication } +tasks.findAll { it.name.startsWith "publishShadowPublication" } + .each { it.dependsOn tasks.generatePomFileForNebulaPublication } tasks.named("dependencyLicenses").configure { mapping from: /asm-.*/, to: 'asm'