From e8d4d4a55e5537617c6af18196d30fa858188753 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Mon, 27 Nov 2023 16:35:02 -0800 Subject: [PATCH 1/2] lang-painless to add maven compile dependencies Signed-off-by: Prudhvi Godithi --- CHANGELOG.md | 1 + modules/lang-painless/build.gradle | 11 +++++++++-- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 4b18d64f3d8a9..3b0cd73e751b5 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -94,6 +94,7 @@ The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), - Don't over-allocate in HeapBufferedAsyncEntityConsumer in order to consume the response ([#9993](https://github.com/opensearch-project/OpenSearch/pull/9993)) - [BUG] Fix the thread context that is not properly cleared and messes up the traces ([#10873](https://github.com/opensearch-project/OpenSearch/pull/10873)) - Handle canMatchSearchAfter for frozen context scenario ([#11249](https://github.com/opensearch-project/OpenSearch/pull/11249)) +- [BUG] lang-painless missing compile dependencies ([#11353](https://github.com/opensearch-project/OpenSearch/issues/11353)) ### Security 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' From b4fa1367c378c3f1eb1209c20ee1cdb6803fe6f3 Mon Sep 17 00:00:00 2001 From: Prudhvi Godithi Date: Mon, 27 Nov 2023 16:55:24 -0800 Subject: [PATCH 2/2] Empty Commmit Signed-off-by: Prudhvi Godithi