浏览代码

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

Ryan Ernst 9 年之前
父节点
当前提交
a30f649013
共有 1 个文件被更改,包括 4 次插入0 次删除
  1. 4 0
      build.gradle

+ 4 - 0
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 {