A checkstyle configuration shared by multiple projects.
Following Gradle documentation's instructions, checkstyle can be configured in your project this way:
apply plugin: "checkstyle"
configurations {
checkstyleConfig
}
dependencies {
checkstyleConfig "org.hildan.checkstyle:checkstyle-config:1.1.0"
}
checkstyle { // affects all Checkstyle tasks
config = resources.text.fromArchiveEntry(configurations.checkstyleConfig, "checkstyle.xml")
}