2016-07-25 20:09:54 -04: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 06:15:29 -05: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 20:09:54 -04:00
|
|
|
|
|
|
|
tasks.withType(LicenseHeadersTask.class) {
|
|
|
|
approvedLicenses = ['Elasticsearch Confidential']
|
|
|
|
additionalLicense 'ESCON', 'Elasticsearch Confidential', 'ELASTICSEARCH CONFIDENTIAL'
|
|
|
|
}
|
2016-02-03 11:21:55 -05:00
|
|
|
}
|