From d82b6140a102aea783b6252bdfd5669f31e976ae Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Mon, 27 Nov 2023 16:35:02 -0800 Subject: [PATCH] lang-painless to add maven compile dependencies Signed-off-by: Prudhvi Godithi --- modules/lang-painless/build.gradle | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/modules/lang-painless/build.gradle b/modules/lang-painless/build.gradle index d7af8621c478a..b8d04fcd0f2a0 100644 --- a/modules/lang-painless/build.gradle +++ b/modules/lang-painless/build.gradle @@ -82,9 +82,16 @@ shadowJar { } } -tasks.validateNebulaPom.dependsOn tasks.generatePomFileForShadowPublication +// Allowing the task generatePomFileForNebulaPublication to generate the POM file with added compile dependencies. +gradle.taskGraph.whenReady { + taskGraph -> + if (taskGraph.hasTask(generatePomFileForShadowPublication)) { + generatePomFileForShadowPublication.enabled = false + } +} + tasks.validateShadowPom.dependsOn tasks.generatePomFileForNebulaPublication -tasks.withType(AbstractPublishToMaven)*.dependsOn "generatePomFileForShadowPublication", "generatePomFileForNebulaPublication" +tasks.withType(AbstractPublishToMaven)*.dependsOn "generatePomFileForNebulaPublication" tasks.named("dependencyLicenses").configure { mapping from: /asm-.*/, to: 'asm'