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