Index: libadblockplus-android-settings/build.gradle |
diff --git a/libadblockplus-android-settings/build.gradle b/libadblockplus-android-settings/build.gradle |
index 6a50134b7335a3cdcf8923fb43825d92d3ab979e..1e1d73678b1ce49b0488b3c77ce55028ebbe0dbe 100644 |
--- a/libadblockplus-android-settings/build.gradle |
+++ b/libadblockplus-android-settings/build.gradle |
@@ -1,4 +1,5 @@ |
apply plugin: 'com.android.library' |
+apply plugin: 'checkstyle' |
android { |
compileSdkVersion 21 |
@@ -28,9 +29,28 @@ android { |
} |
} |
- |
- |
dependencies { |
compile project(':libadblockplus-android') |
compile 'com.android.support:support-v4: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_checks.xml") |
+ configProperties = [ |
+ "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt") |
+ ] |
} |