Skip to content

Instantly share code, notes, and snippets.

@alpargabos
Created August 14, 2016 17:30
Show Gist options
  • Save alpargabos/373ec06e7e81869173237a6ca8126a84 to your computer and use it in GitHub Desktop.
Save alpargabos/373ec06e7e81869173237a6ca8126a84 to your computer and use it in GitHub Desktop.
Checkstyle-gradle
apply plugin: 'checkstyle'
// Add checkstyle to the check task.
check.dependsOn 'checkstyle'
task checkstyle(type: Checkstyle) {
configFile file("../config/quality/checkstyle/checkstyle.xml")
configProperties.checkstyleSuppressionsPath = file("../config/quality/checkstyle/suppressions.xml").absolutePath
source 'src'
include '**/*.java'
exclude '**/gen/**'
exclude '**/R.java'
exclude '**/BuildConfig.java'
classpath = files()
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment