Ensure client jar projects generate correct POM artifacts (#48961)
This commit is contained in:
parent
d9e569278f
commit
8acbd0aa2a
|
@ -151,8 +151,8 @@ class PluginBuildPlugin implements Plugin<Project> {
|
|||
// always configure publishing for client jars
|
||||
project.plugins.apply(MavenScmPlugin.class)
|
||||
project.publishing.publications.nebula(MavenPublication).artifactId(extension.name + "-client")
|
||||
project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom generatePOMTask ->
|
||||
generatePOMTask.ext.pomFileName = "${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom"
|
||||
project.tasks.withType(GenerateMavenPom.class).configureEach { GenerateMavenPom generatePOMTask ->
|
||||
generatePOMTask.destination = "${project.buildDir}/distributions/${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom"
|
||||
}
|
||||
} else {
|
||||
if (project.plugins.hasPlugin(MavenPublishPlugin)) {
|
||||
|
|
Loading…
Reference in New Issue