Index: libadblockplus-android-webviewapp/build.gradle |
diff --git a/libadblockplus-android-webviewapp/build.gradle b/libadblockplus-android-webviewapp/build.gradle |
index 306b2be83eb3123f8e4e4736f54bab74e088b379..ca38676fb9d9a83129e9877efb5a79676a623456 100644 |
--- a/libadblockplus-android-webviewapp/build.gradle |
+++ b/libadblockplus-android-webviewapp/build.gradle |
@@ -1,4 +1,5 @@ |
apply plugin: 'com.android.application' |
+apply plugin: 'checkstyle' |
allprojects { |
repositories { |
@@ -40,9 +41,29 @@ android { |
} |
} |
- |
dependencies { |
compile project(':libadblockplus-android-settings') |
compile project(':libadblockplus-android-webview') |
compile 'com.android.support:appcompat-v7:21.0.3' |
+} |
+ |
+checkstyle { |
+ toolVersion = '6.19' |
+} |
+ |
+task checkstyleMain(type: Checkstyle) { |
+ ignoreFailures = true |
+ showViolations = true |
+ source 'src/org/adblockplus/' |
+ exclude '**/gen/**' |
+ exclude '**/R.java' |
+ exclude '**/BuildConfig.java' |
+ reports { |
+ xml.destination "$project.buildDir/reports/checkstyle/main.xml" |
+ } |
+ classpath = files() |
+ configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/eyeo_production_checks.xml") |
+ configProperties = [ |
+ "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt") |
+ ] |
} |