LEFT | RIGHT |
(no file at all) | |
1 apply plugin: 'com.android.application' | 1 apply plugin: 'com.android.application' |
| 2 apply plugin: 'checkstyle' |
2 | 3 |
3 allprojects { | 4 allprojects { |
4 repositories { | 5 repositories { |
5 mavenLocal() | 6 mavenLocal() |
6 mavenCentral() | 7 mavenCentral() |
7 } | 8 } |
8 } | 9 } |
9 | 10 |
10 repositories { | 11 repositories { |
11 mavenLocal() | 12 mavenLocal() |
(...skipping 21 matching lines...) Expand all Loading... |
33 | 34 |
34 jni { | 35 jni { |
35 dependencies { | 36 dependencies { |
36 project ":libadblockplus-android" | 37 project ":libadblockplus-android" |
37 } | 38 } |
38 } | 39 } |
39 } | 40 } |
40 } | 41 } |
41 } | 42 } |
42 | 43 |
43 | |
44 dependencies { | 44 dependencies { |
45 compile project(':libadblockplus-android-settings') | 45 compile project(':libadblockplus-android-settings') |
46 compile project(':libadblockplus-android-webview') | 46 compile project(':libadblockplus-android-webview') |
47 compile 'com.android.support:appcompat-v7:21.0.3' | 47 compile 'com.android.support:appcompat-v7:21.0.3' |
| 48 } |
| 49 |
| 50 checkstyle { |
| 51 toolVersion = '6.19' |
| 52 } |
| 53 |
| 54 task checkstyleMain(type: Checkstyle) { |
| 55 ignoreFailures = true |
| 56 showViolations = true |
| 57 source 'src/org/adblockplus/' |
| 58 exclude '**/gen/**' |
| 59 exclude '**/R.java' |
| 60 exclude '**/BuildConfig.java' |
| 61 reports { |
| 62 xml.destination "$project.buildDir/reports/checkstyle/main.xml" |
| 63 } |
| 64 classpath = files() |
| 65 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/
eyeo_production_checks.xml") |
| 66 configProperties = [ |
| 67 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec
kstyle/java/res/header.txt") |
| 68 ] |
48 } | 69 } |
LEFT | RIGHT |