-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathcommon.gradle
43 lines (36 loc) · 1008 Bytes
/
common.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
apply from: file("${project.rootDir}/versions.gradle")
apply plugin: 'maven-publish'
repositories {
mavenLocal()
mavenCentral()
google()
}
dependencies {
testImplementation "junit:junit:$JUNIT_VERSION"
testImplementation "org.mockito:mockito-core:$MOCKITO_VERSION"
testImplementation "org.robolectric:robolectric:$ROBOLECTRIC_VERSION"
}
configurations.implementation.resolutionStrategy {
force "com.google.guava:guava:$GUAVA_VERSION"
force "org.hamcrest:hamcrest-core:$HAMCREST_VERSION"
}
android {
testOptions {
unitTests {
includeAndroidResources = true
}
}
compileOptions {
sourceCompatibility JavaVersion.VERSION_17
targetCompatibility JavaVersion.VERSION_17
}
}
// Disable all releaseUnitTests, newer android testing libs are not compilable for ReleaseUnitTest
tasks.configureEach {task ->
if (task.name.contains("ReleaseSignedUnitTest")) {
task.enabled = false
}
if (task.name.contains("ReleaseUnitTest")) {
task.enabled = false
}
}