Skip to content

Commit

Permalink
lang-painless to add maven compile dependencies
Browse files Browse the repository at this point in the history
Signed-off-by: Prudhvi Godithi <pgodithi@amazon.com>
  • Loading branch information
prudhvigodithi committed Nov 28, 2023
1 parent 26a1439 commit d82b614
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions modules/lang-painless/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit d82b614

Please sign in to comment.