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

Delta Between Two Patch Sets: libadblockplus-android-tests/build.gradle

Issue 29347926: Issue 4248 - Add codestyle check
Left Patch Set: Created July 18, 2016, 12:45 p.m.
Right 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:
Right: Side by side diff | Download
« no previous file with change/comment | « libadblockplus-android-settings/build.gradle ('k') | libadblockplus-android-webview/build.gradle » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
(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()
12 mavenCentral() 13 mavenCentral()
13 } 14 }
14 15
15 android { 16 android {
16 compileSdkVersion 16 17 compileSdkVersion 16
17 buildToolsVersion "25.0.0" 18 buildToolsVersion "25.0.0"
18 19
19 defaultConfig { 20 defaultConfig {
20 applicationId "org.adblockplus.libadblockplus.tests" 21 applicationId "org.adblockplus.libadblockplus.tests"
21 minSdkVersion 11 22 minSdkVersion 11
22 targetSdkVersion 16 23 targetSdkVersion 16
23 versionCode 1 24 versionCode 1
24 versionName "1.0" 25 versionName "1.0"
25 }
26
27 sourceSets {
28 main {
29 manifest.srcFile 'AndroidManifest.xml'
30 } 26 }
31 27
32 androidTest { 28 sourceSets {
33 manifest.srcFile 'AndroidManifest.xml' 29 main {
34 java.srcDirs = ['src'] 30 manifest.srcFile 'AndroidManifest.xml'
31 }
35 32
36 jni { 33 androidTest {
37 dependencies { 34 manifest.srcFile 'AndroidManifest.xml'
38 project ":libadblockplus-android" 35 java.srcDirs = ['src']
36
37 jni {
38 dependencies {
39 project ":libadblockplus-android"
40 }
41 }
39 } 42 }
40 }
41 } 43 }
42 }
43 } 44 }
44 45
45 dependencies { 46 dependencies {
46 androidTestCompile project(':libadblockplus-android') 47 androidTestCompile project(':libadblockplus-android')
47 androidTestCompile fileTree(include: ['*.jar'], dir: 'libs') 48 androidTestCompile fileTree(include: ['*.jar'], dir: 'libs')
49 }
50
51 checkstyle {
52 toolVersion = '6.19'
53 }
54
55 task checkstyleMain(type: Checkstyle) {
56 ignoreFailures = true
57 showViolations = true
58 source 'src/org/adblockplus/'
59 exclude '**/gen/**'
60 exclude '**/R.java'
61 exclude '**/BuildConfig.java'
62 reports {
63 xml.destination "$project.buildDir/reports/checkstyle/main.xml"
64 }
65 classpath = files()
66 configFile = file("${rootProject.rootDir}/third_party/checkstyle/java/rules/ eyeo_test_checks.xml")
67 configProperties = [
68 "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/ checkstyle/java/res/header.txt")
69 ]
48 } 70 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld