From 8acbd0aa2a9c3d6cb06d0c42237e08a638ba4898 Mon Sep 17 00:00:00 2001 From: Mark Vieira Date: Mon, 11 Nov 2019 12:25:14 -0800 Subject: [PATCH] Ensure client jar projects generate correct POM artifacts (#48961) --- .../org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy b/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy index f36662c092f..a7d58c79b2a 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy @@ -151,8 +151,8 @@ class PluginBuildPlugin implements Plugin { // 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)) {