| Index: libadblockplus-android-settings/build.gradle |
| diff --git a/libadblockplus-android-settings/build.gradle b/libadblockplus-android-settings/build.gradle |
| index 6a50134b7335a3cdcf8923fb43825d92d3ab979e..0656c8a2f3084ceb1d9df0b4b4804b53c7f15b22 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_production_checks.xml") |
| + configProperties = [ |
| + "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt") |
| + ] |
| } |