summaryrefslogtreecommitdiff
path: root/android-app/app/build.gradle.kts
blob: 6e051d5150ce098d2020f991ebf0d3d732dc6a58 (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
plugins {
    kotlin("jvm") version "1.9.22"
}

repositories {
    mavenCentral()
    google()
}

dependencies {
    implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.7.3")

    testImplementation("junit:junit:4.13.2")
    testImplementation("org.jetbrains.kotlinx:kotlinx-coroutines-test:1.7.3")
}

// Register testDebugUnitTest as a Test task so --tests filter works
tasks.register<Test>("testDebugUnitTest") {
    description = "Mirrors Android testDebugUnitTest convention"
    group = "verification"
    testClassesDirs = sourceSets["test"].output.classesDirs
    classpath = sourceSets["test"].runtimeClasspath
    mustRunAfter(tasks.named("compileTestKotlin"))
}

kotlin {
    jvmToolchain(17)
}