Add POM and license generation for X-Pack artifacts

With the switch to X-Pack as a module, we lost production of POMs for
the JARs that we publish, and did not have a license/notice file in the
zip archives nor the exploded module. This commit ensures that we
generate these POMs, and license/notice files.
This commit is contained in:
Jason Tedor 2018-03-31 21:27:05 -04:00 committed by Ryan Ernst
parent 2e869f2017
commit 4fe1d64070
1 changed files with 5 additions and 1 deletions

View File

@ -50,7 +50,8 @@ public class PluginBuildPlugin extends BuildPlugin {
// this afterEvaluate must happen before the afterEvaluate added by integTest creation,
// so that the file name resolution for installing the plugin will be setup
project.afterEvaluate {
boolean isModule = project.path.startsWith(':modules:') || project.path.startsWith(':x-pack:plugin')
boolean isXPackModule = project.path.startsWith(':x-pack:plugin')
boolean isModule = project.path.startsWith(':modules:') || isXPackModule
String name = project.pluginProperties.extension.name
project.archivesBaseName = name
@ -74,6 +75,9 @@ public class PluginBuildPlugin extends BuildPlugin {
} else {
project.integTestCluster.plugin(project.path)
project.tasks.run.clusterConfig.plugin(project.path)
}
if (isModule == false || isXPackModule) {
addZipPomGeneration(project)
addNoticeGeneration(project)
}