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:
parent
2e869f2017
commit
4fe1d64070
|
@ -50,7 +50,8 @@ public class PluginBuildPlugin extends BuildPlugin {
|
||||||
// this afterEvaluate must happen before the afterEvaluate added by integTest creation,
|
// this afterEvaluate must happen before the afterEvaluate added by integTest creation,
|
||||||
// so that the file name resolution for installing the plugin will be setup
|
// so that the file name resolution for installing the plugin will be setup
|
||||||
project.afterEvaluate {
|
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
|
String name = project.pluginProperties.extension.name
|
||||||
project.archivesBaseName = name
|
project.archivesBaseName = name
|
||||||
|
|
||||||
|
@ -74,6 +75,9 @@ public class PluginBuildPlugin extends BuildPlugin {
|
||||||
} else {
|
} else {
|
||||||
project.integTestCluster.plugin(project.path)
|
project.integTestCluster.plugin(project.path)
|
||||||
project.tasks.run.clusterConfig.plugin(project.path)
|
project.tasks.run.clusterConfig.plugin(project.path)
|
||||||
|
}
|
||||||
|
|
||||||
|
if (isModule == false || isXPackModule) {
|
||||||
addZipPomGeneration(project)
|
addZipPomGeneration(project)
|
||||||
addNoticeGeneration(project)
|
addNoticeGeneration(project)
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue