diff --git a/build.gradle b/build.gradle index 31e883acc15..23a7eb75d72 100644 --- a/build.gradle +++ b/build.gradle @@ -1,3 +1,4 @@ +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')