aboutsummaryrefslogtreecommitdiff
path: root/dexmaker-mockito-tests/build.gradle
diff options
context:
space:
mode:
Diffstat (limited to 'dexmaker-mockito-tests/build.gradle')
-rw-r--r--dexmaker-mockito-tests/build.gradle40
1 files changed, 27 insertions, 13 deletions
diff --git a/dexmaker-mockito-tests/build.gradle b/dexmaker-mockito-tests/build.gradle
index a08e254..70f3dfa 100644
--- a/dexmaker-mockito-tests/build.gradle
+++ b/dexmaker-mockito-tests/build.gradle
@@ -1,20 +1,33 @@
-apply plugin: 'com.android.application'
+buildscript {
+ repositories {
+ maven {
+ url "https://plugins.gradle.org/m2/"
+ }
+ }
+ dependencies {
+ classpath "net.ltgt.gradle:gradle-errorprone-plugin:0.0.13"
+ }
+}
+
+apply plugin: "net.ltgt.errorprone"
+apply plugin: 'com.android.library'
android {
- compileSdkVersion 25
- buildToolsVersion "25.0.0"
+ compileSdkVersion 28
- lintOptions {
- abortOnError false
+ android {
+ lintOptions {
+ disable 'InvalidPackage'
+ disable 'NewApi'
+ }
}
defaultConfig {
- applicationId "com.android.dexmaker.mockito.tests"
- minSdkVersion 25
- targetSdkVersion 25
+ minSdkVersion 8
+ targetSdkVersion 28
versionName VERSION_NAME
- testInstrumentationRunner "android.support.test.runner.AndroidJUnitRunner"
+ testInstrumentationRunner 'android.support.test.runner.AndroidJUnitRunner'
}
}
@@ -24,9 +37,10 @@ repositories {
}
dependencies {
- compile project(':dexmaker')
- compile project(':dexmaker-mockito')
+ compileOnly project(':dexmaker-mockito')
+ androidTestImplementation project(':dexmaker-mockito')
- androidTestCompile 'com.android.support.test:runner:0.5'
- androidTestCompile 'junit:junit:4.12'
+ implementation 'com.android.support.test:runner:0.5'
+ implementation 'junit:junit:4.12'
+ api 'org.mockito:mockito-core:2.19.0', { exclude group: 'net.bytebuddy' }
}