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:
parent
13672dad13
commit
b30c634326
|
@ -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')
|
||||||
|
|
Loading…
Reference in New Issue