From 6da0f0dcc097d71552226cf858e2e459a8f7b33a Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Wed, 5 Oct 2016 08:10:27 -0700 Subject: [PATCH] Build: Fix plugin poms to have correct artifact id (#20764) We already override the name in plugin pom files to be that configured for the plugin but we also need to explicitly set the artifactId. --- .../org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy | 1 + 1 file changed, 1 insertion(+) 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 0bb97aa84db..d5295519ad2 100644 --- a/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy +++ b/buildSrc/src/main/groovy/org/elasticsearch/gradle/plugin/PluginBuildPlugin.groovy @@ -231,6 +231,7 @@ public class PluginBuildPlugin extends BuildPlugin { * ahold of the actual task. Furthermore, this entire hack only exists so we can make publishing to * maven local work, since we publish to maven central externally. */ zipReal(MavenPublication) { + artifactId = project.pluginProperties.extension.name pom.withXml { XmlProvider xml -> Node root = xml.asNode() root.appendNode('name', project.pluginProperties.extension.name)