Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Side by Side Diff: libadblockplus-android-webviewapp/build.gradle

Issue 29347926: Issue 4248 - Add codestyle check
Patch Set: added Gradle support, removed Ant support, added original files URLs Created April 14, 2017, 11:56 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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
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_checks.xml")
66 configProperties = [
67 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec kstyle/java/res/header.txt")
68 ]
48 } 69 }
OLDNEW

Powered by Google App Engine
This is Rietveld