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 https://github.com/elastic/elasticsearch/pull/26373

Original commit: elastic/x-pack-elasticsearch@209a1e9a47
This commit is contained in:
Ryan Ernst 2017-08-24 22:47:10 -07:00 committed by GitHub
parent 13672dad13
commit b30c634326
1 changed files with 6 additions and 0 deletions

View File

@ -1,3 +1,4 @@
import org.elasticsearch.gradle.BuildPlugin
import org.elasticsearch.gradle.VersionProperties import org.elasticsearch.gradle.VersionProperties
import org.elasticsearch.gradle.precommit.LicenseHeadersTask 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') File checkstyleSuppressions = file('dev-tools/checkstyle_suppressions.xml')