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' } }