aboutsummaryrefslogtreecommitdiff
path: root/robolectric/build.gradle
blob: 859504e6d230a26e0a810b01444fc082d1286548 (plain)
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
43
44
45
46
47
48
49
50
51
import org.robolectric.gradle.DeployedRoboJavaModulePlugin
import org.robolectric.gradle.RoboJavaModulePlugin

apply plugin: RoboJavaModulePlugin
apply plugin: DeployedRoboJavaModulePlugin

dependencies {
    annotationProcessor libs.auto.service
    annotationProcessor libs.error.prone.core

    api project(":annotations")
    api project(":junit")
    api project(":pluginapi")
    api project(":resources")
    api project(":sandbox")
    api project(":utils")
    api project(":utils:reflector")
    api project(":plugins:maven-dependency-resolver")
    api libs.javax.inject
    compileOnly libs.auto.service.annotations
    api libs.javax.annotation.api

    // We need to have shadows-framework.jar on the runtime system classpath so ServiceLoader
    //   can find its META-INF/services/org.robolectric.shadows.ShadowAdapter.
    api project(":shadows:framework")

    implementation libs.conscrypt.openjdk.uber
    api libs.bcprov.jdk18on
    compileOnly libs.findbugs.jsr305

    compileOnly AndroidSdk.MAX_SDK.coordinates
    compileOnly libs.junit4
    compileOnly libs.androidx.annotation

    api "androidx.test:monitor:$axtMonitorVersion@aar"
    implementation "androidx.test.espresso:espresso-idling-resource:$espressoVersion@aar"

    testImplementation libs.androidx.annotation
    testImplementation libs.junit4
    testImplementation libs.truth
    testImplementation libs.truth.java8.extension
    testImplementation libs.mockito
    testImplementation libs.hamcrest.junit
    testImplementation "androidx.test:core:$axtCoreVersion@aar"
    testImplementation "androidx.test.ext:junit:$axtJunitVersion@aar"
    testImplementation "androidx.test.ext:truth:$axtTruthVersion@aar"
    testImplementation "androidx.test:runner:$axtRunnerVersion@aar"
    testImplementation libs.guava
    testCompileOnly AndroidSdk.MAX_SDK.coordinates // compile against latest Android SDK
    testRuntimeOnly AndroidSdk.MAX_SDK.coordinates // run against whatever this JDK supports
}