summaryrefslogtreecommitdiff
path: root/build-system/integration-test/test-projects/unitTesting/build.gradle
blob: b399ee9ef1a2342c56f9f1061c97ec5652ecc6b6 (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
apply from: "../commonHeader.gradle"

buildscript {
    apply from: "../commonHeader.gradle"  // for $kotlinVersion
    apply from: "../commonBuildScript.gradle"

    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${libs.versions.kotlinVersion.get()}"
    }
}

apply plugin: 'com.android.application'
apply plugin: 'kotlin-android'

android {
    namespace "com.android.tests"
    compileSdkVersion libs.versions.latestCompileSdk.get().toInteger()
    buildToolsVersion = libs.versions.buildToolsVersion.get()

    testOptions {
        unitTests.all {
            systemProperty 'foo', 'bar'
        }
    }
    kotlinOptions {
        jvmTarget = JavaVersion.VERSION_1_8
    }
}

dependencies {
    api "org.jetbrains.kotlin:kotlin-stdlib:${libs.versions.kotlinVersion.get()}"

    testImplementation 'junit:junit:4.12'
    testImplementation 'org.mockito:mockito-core:4.8.0'
    testImplementation 'org.jdeferred:jdeferred-android-aar:1.2.3'
    testImplementation 'commons-logging:commons-logging:1.1.1'
}