| Index: libadblockplus-android-webviewapp/build.gradle |
| diff --git a/libadblockplus-android-webviewapp/build.gradle b/libadblockplus-android-webviewapp/build.gradle |
| index 306b2be83eb3123f8e4e4736f54bab74e088b379..171445b219c876e9c4d9494dffdd955ffa52c34d 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_checks.xml") |
| + configProperties = [ |
| + "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt") |
| + ] |
| } |