Fix artifactId in plugin poms (#37315)

This commit is contained in:
Alpar Torok 2019-01-11 11:23:54 +02:00 committed by GitHub
parent 3a929c7aea
commit 100ef2cc0e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ public class PluginBuildPlugin extends BuildPlugin {
generatePOMTask.ext.pomFileName = "${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom" generatePOMTask.ext.pomFileName = "${project.archivesBaseName}-client-${project.versions.elasticsearch}.pom"
} }
} else { } else {
project.plugins.withType(MavenPublishPlugin).whenPluginAdded { if (project.plugins.hasPlugin(MavenPublishPlugin)) {
project.publishing.publications.nebula(MavenPublication).artifactId( project.publishing.publications.nebula(MavenPublication).artifactId(
project.pluginProperties.extension.name project.pluginProperties.extension.name
) )