Skip to content

Commit 8acbd0a

Browse files
authored
Ensure client jar projects generate correct POM artifacts (elastic#48961)
1 parent d9e5692 commit 8acbd0a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy

+2-2
Original file line numberDiff line numberDiff line change
@@ -151,8 +151,8 @@ class PluginBuildPlugin implements Plugin<Project> {
151151
// always configure publishing for client jars
152152
project.plugins.apply(MavenScmPlugin.class)
153153
project.publishing.publications.nebula(MavenPublication).artifactId(extension.name + "-client")
154-
project.tasks.withType(GenerateMavenPom.class) { GenerateMavenPom generatePOMTask ->
155-
generatePOMTask.ext.pomFileName = "${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom"
154+
project.tasks.withType(GenerateMavenPom.class).configureEach { GenerateMavenPom generatePOMTask ->
155+
generatePOMTask.destination = "${project.buildDir}/distributions/${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom"
156156
}
157157
} else {
158158
if (project.plugins.hasPlugin(MavenPublishPlugin)) {

0 commit comments

Comments
 (0)