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.
This commit is contained in:
Ryan Ernst 2016-10-05 08:10:27 -07:00 committed by GitHub
parent e168b3b66b
commit 6da0f0dcc0

View File

@ -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)