Build: Apply license section in poms only to elasticsearch artifacts (#21757)

This commit is contained in:
Ryan Ernst 2016-11-24 00:03:43 -08:00 committed by GitHub
parent c3ec8e22b8
commit a30f649013
1 changed files with 4 additions and 0 deletions

View File

@ -27,6 +27,10 @@ subprojects {
group = 'org.elasticsearch'
version = org.elasticsearch.gradle.VersionProperties.elasticsearch
description = "Elasticsearch subproject ${project.path}"
}
// setup pom license info, but only for artifacts that are part of elasticsearch
configure(subprojects.findAll { it.path.startsWith(':x-plugins') == false }) {
// we only use maven publish to add tasks for pom generation
plugins.withType(MavenPublishPlugin).whenPluginAdded {