mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-11 23:45:15 +00:00
This is dependent on elastic/elasticsearchelastic/elasticsearch#19589. It also fixes the existing files that either were missing the license header or had the open source license header. Original commit: elastic/x-pack-elasticsearch@2642c20381
18 lines
565 B
Groovy
18 lines
565 B
Groovy
import org.elasticsearch.gradle.precommit.LicenseHeadersTask
|
|
|
|
File checkstyleSuppressions = file('checkstyle_suppressions.xml')
|
|
subprojects {
|
|
tasks.withType(Checkstyle) {
|
|
inputs.file(checkstyleSuppressions)
|
|
// Use x-pack specific suppressions file rather than the open source one.
|
|
configProperties = [
|
|
suppressions: checkstyleSuppressions
|
|
]
|
|
}
|
|
|
|
tasks.withType(LicenseHeadersTask.class) {
|
|
approvedLicenses = ['Elasticsearch Confidential']
|
|
additionalLicense 'ESCON', 'Elasticsearch Confidential', 'ELASTICSEARCH CONFIDENTIAL'
|
|
}
|
|
}
|