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

Unified Diff: libadblockplus-android-tests/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.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « libadblockplus-android-settings/build.gradle ('k') | libadblockplus-android-webview/build.gradle » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: libadblockplus-android-tests/build.gradle
diff --git a/libadblockplus-android-tests/build.gradle b/libadblockplus-android-tests/build.gradle
index 28bbec473298d04401f540d475366bda9589bef2..d374e66a2b4dd09ed49d82f8ec127f1115c16acf 100644
--- a/libadblockplus-android-tests/build.gradle
+++ b/libadblockplus-android-tests/build.gradle
@@ -1,48 +1,70 @@
apply plugin: 'com.android.application'
+apply plugin: 'checkstyle'
allprojects {
- repositories {
- mavenLocal()
- mavenCentral()
- }
+ repositories {
+ mavenLocal()
+ mavenCentral()
+ }
}
repositories {
- mavenLocal()
- mavenCentral()
+ mavenLocal()
+ mavenCentral()
}
android {
- compileSdkVersion 16
- buildToolsVersion "25.0.0"
-
- defaultConfig {
- applicationId "org.adblockplus.libadblockplus.tests"
- minSdkVersion 11
- targetSdkVersion 16
- versionCode 1
- versionName "1.0"
- }
-
- sourceSets {
- main {
- manifest.srcFile 'AndroidManifest.xml'
+ compileSdkVersion 16
+ buildToolsVersion "25.0.0"
+
+ defaultConfig {
+ applicationId "org.adblockplus.libadblockplus.tests"
+ minSdkVersion 11
+ targetSdkVersion 16
+ versionCode 1
+ versionName "1.0"
}
- androidTest {
- manifest.srcFile 'AndroidManifest.xml'
- java.srcDirs = ['src']
+ sourceSets {
+ main {
+ manifest.srcFile 'AndroidManifest.xml'
+ }
- jni {
- dependencies {
- project ":libadblockplus-android"
+ androidTest {
+ manifest.srcFile 'AndroidManifest.xml'
+ java.srcDirs = ['src']
+
+ jni {
+ dependencies {
+ project ":libadblockplus-android"
+ }
+ }
}
- }
}
- }
}
dependencies {
- androidTestCompile project(':libadblockplus-android')
- androidTestCompile fileTree(include: ['*.jar'], dir: 'libs')
+ androidTestCompile project(':libadblockplus-android')
+ androidTestCompile fileTree(include: ['*.jar'], dir: 'libs')
+}
+
+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_test_checks.xml")
+ configProperties = [
+ "checkstyle.header.file" : file("${rootProject.rootDir}/third_party/checkstyle/java/res/header.txt")
+ ]
}
« no previous file with comments | « libadblockplus-android-settings/build.gradle ('k') | libadblockplus-android-webview/build.gradle » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld