2016-07-25 17:09:54 -07:00
|
|
|
import org.elasticsearch.gradle.precommit.LicenseHeadersTask
|
|
|
|
|
2016-02-03 11:21:55 -05:00
|
|
|
File checkstyleSuppressions = file('checkstyle_suppressions.xml')
|
|
|
|
subprojects {
|
|
|
|
tasks.withType(Checkstyle) {
|
2016-02-05 12:15:29 +01:00
|
|
|
inputs.file(checkstyleSuppressions)
|
2016-02-03 11:21:55 -05:00
|
|
|
// Use x-pack specific suppressions file rather than the open source one.
|
|
|
|
configProperties = [
|
|
|
|
suppressions: checkstyleSuppressions
|
|
|
|
]
|
|
|
|
}
|
2016-07-25 17:09:54 -07:00
|
|
|
|
|
|
|
tasks.withType(LicenseHeadersTask.class) {
|
|
|
|
approvedLicenses = ['Elasticsearch Confidential']
|
|
|
|
additionalLicense 'ESCON', 'Elasticsearch Confidential', 'ELASTICSEARCH CONFIDENTIAL'
|
|
|
|
}
|
2016-09-19 11:42:27 -07:00
|
|
|
ext.projectSubstitutions += [ "org.elasticsearch.plugin:x-pack-api:${version}": ':x-plugins:elasticsearch:x-pack' ]
|
2016-02-03 11:21:55 -05:00
|
|
|
}
|