2018-01-27 00:48:30 -05:00
|
|
|
import org.elasticsearch.gradle.plugin.PluginBuildPlugin
|
2016-09-29 06:03:14 -04:00
|
|
|
import org.elasticsearch.gradle.precommit.LicenseHeadersTask
|
2016-04-25 19:21:05 -04:00
|
|
|
|
2018-01-27 00:48:30 -05:00
|
|
|
Project xpackRootProject = project
|
|
|
|
|
2016-02-04 16:07:01 -05:00
|
|
|
subprojects {
|
2017-12-12 15:23:29 -05:00
|
|
|
group = 'org.elasticsearch.plugin'
|
2018-01-27 00:48:30 -05:00
|
|
|
ext.xpackRootProject = xpackRootProject
|
|
|
|
ext.xpackProject = { String projectName -> xpackRootProject.project(projectName) }
|
|
|
|
// helper method to find the path to a module
|
|
|
|
ext.xpackModule = { String moduleName -> xpackProject("plugin:${moduleName}").path }
|
2017-12-12 15:23:29 -05:00
|
|
|
|
2018-01-27 00:48:30 -05:00
|
|
|
plugins.withType(PluginBuildPlugin).whenPluginAdded {
|
2018-04-10 16:58:49 -04:00
|
|
|
project.esplugin.licenseFile = rootProject.file('licenses/ELASTIC-LICENSE.txt')
|
2018-01-27 00:48:30 -05:00
|
|
|
project.esplugin.noticeFile = xpackRootProject.file('NOTICE.txt')
|
2017-08-25 01:47:10 -04:00
|
|
|
}
|
2019-11-14 06:01:23 -05:00
|
|
|
|
2018-10-29 08:38:56 -04:00
|
|
|
tasks.withType(LicenseHeadersTask.class) {
|
2019-11-14 06:01:23 -05:00
|
|
|
approvedLicenses = ['Elastic License', 'Generated']
|
|
|
|
additionalLicense 'ELAST', 'Elastic License', 'Licensed under the Elastic License'
|
2018-10-29 08:38:56 -04:00
|
|
|
}
|
2018-07-08 11:03:56 -04:00
|
|
|
|
2018-10-29 08:38:56 -04:00
|
|
|
ext.licenseName = 'Elastic License'
|
|
|
|
ext.licenseUrl = ext.elasticLicenseUrl
|
2018-07-08 11:03:56 -04:00
|
|
|
|
2018-10-29 08:38:56 -04:00
|
|
|
project.ext.licenseFile = rootProject.file('licenses/ELASTIC-LICENSE.txt')
|
|
|
|
project.ext.noticeFile = xpackRootProject.file('NOTICE.txt')
|
2016-02-04 16:07:01 -05:00
|
|
|
}
|