From a30f6490133eab6afbad4f9c4620084a18f705b7 Mon Sep 17 00:00:00 2001 From: Ryan Ernst Date: Thu, 24 Nov 2016 00:03:43 -0800 Subject: [PATCH] Build: Apply license section in poms only to elasticsearch artifacts (#21757) --- build.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/build.gradle b/build.gradle index 2bda78cd1c4..ba19a993bdc 100644 --- a/build.gradle +++ b/build.gradle @@ -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 {