Created
August 14, 2016 17:30
-
-
Save alpargabos/373ec06e7e81869173237a6ca8126a84 to your computer and use it in GitHub Desktop.
Checkstyle-gradle
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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