mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-17 10:25:15 +00:00
Fix the default pom file name (#33063)
Before this change the default was fixed at compile time and not picking up changes in the build script.
This commit is contained in:
parent
0cc99d270c
commit
edd477a15e
@ -531,12 +531,16 @@ class BuildPlugin implements Plugin<Project> {
|
||||
project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom generatePOMTask ->
|
||||
// The GenerateMavenPom task is aggressive about setting the destination, instead of fighting it,
|
||||
// just make a copy.
|
||||
generatePOMTask.ext.pomFileName = "${project.archivesBaseName}-${project.version}.pom"
|
||||
generatePOMTask.ext.pomFileName = null
|
||||
doLast {
|
||||
project.copy {
|
||||
from generatePOMTask.destination
|
||||
into "${project.buildDir}/distributions"
|
||||
rename { generatePOMTask.ext.pomFileName }
|
||||
rename {
|
||||
generatePOMTask.ext.pomFileName == null ?
|
||||
"${project.archivesBaseName}-${project.version}.pom" :
|
||||
generatePOMTask.ext.pomFileName
|
||||
}
|
||||
}
|
||||
}
|
||||
// build poms with assemble (if the assemble task exists)
|
||||
|
Loading…
x
Reference in New Issue
Block a user