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

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

Issue 29347926: Issue 4248 - Add codestyle check
Patch Set: moved 'third_party' to review https://codereview.adblockplus.org/29567648/ Created Oct. 6, 2017, 11:33 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.library' 1 apply plugin: 'com.android.library'
2 apply plugin: 'checkstyle'
2 3
3 android { 4 android {
4 compileSdkVersion 21 5 compileSdkVersion 21
5 buildToolsVersion "25.0.0" 6 buildToolsVersion "25.0.0"
6 7
7 defaultConfig { 8 defaultConfig {
8 minSdkVersion 21 9 minSdkVersion 21
9 targetSdkVersion 21 10 targetSdkVersion 21
10 versionCode 1 11 versionCode 1
11 versionName "1.0" 12 versionName "1.0"
12 } 13 }
13 14
14 sourceSets { 15 sourceSets {
15 main { 16 main {
16 manifest.srcFile 'AndroidManifest.xml' 17 manifest.srcFile 'AndroidManifest.xml'
17 java.srcDirs = ['src'] 18 java.srcDirs = ['src']
18 resources.srcDirs = ['src'] 19 resources.srcDirs = ['src']
19 res.srcDirs = ['res'] 20 res.srcDirs = ['res']
20 assets.srcDirs = ['assets'] 21 assets.srcDirs = ['assets']
21 22
22 jni { 23 jni {
23 dependencies { 24 dependencies {
24 project ":libadblockplus-android" 25 project ":libadblockplus-android"
26 }
27 }
25 } 28 }
26 }
27 } 29 }
28 }
29 } 30 }
30 31
31 dependencies { 32 dependencies {
32 compile project(':libadblockplus-android') 33 compile project(':libadblockplus-android')
34 }
35
36 checkstyle {
37 toolVersion = '6.19'
38 }
39
40 task checkstyleMain(type: Checkstyle) {
41 ignoreFailures = true
42 showViolations = true
43 source 'src/org/adblockplus/'
44 exclude '**/gen/**'
45 exclude '**/R.java'
46 exclude '**/BuildConfig.java'
47 reports {
48 xml.destination "$project.buildDir/reports/checkstyle/main.xml"
49 }
50 classpath = files()
51 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/ eyeo_production_checks.xml")
52 configProperties = [
53 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/chec kstyle/java/res/header.txt")
54 ]
33 } 55 }
OLDNEW
« no previous file with comments | « libadblockplus-android-tests/build.gradle ('k') | libadblockplus-android-webviewapp/build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld