Build: Configure the license/notice file for xpack (elastic/x-pack-elasticsearch#2357)
This commit uses the new license/notice file settings in gradle to
specify the xpack license to be placed in jar files.
See
Original commit: elastic/x-pack-elasticsearch@95ea3deb8dd57a81aba47a1f72915cb9fc2a3f41
+import org.elasticsearch.gradle.BuildPlugin
import org.elasticsearch.gradle.VersionProperties
import org.elasticsearch.gradle.precommit.LicenseHeadersTask
@@ -27,6 +28,11 @@ subprojects {
}
}
}
+
+ plugins.withType(BuildPlugin).whenPluginAdded {
+ project.licenseFile = project(':x-pack-elasticsearch').file('LICENSE.txt')
+ project.noticeFile = project(':x-pack-elasticsearch').file('NOTICE.txt')
+ }
}
File checkstyleSuppressions = file('dev-tools/checkstyle_suppressions.xml')
