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("testDebugUnitTest") { description = "Mirrors Android testDebugUnitTest convention" group = "verification" testClassesDirs = sourceSets["test"].output.classesDirs classpath = sourceSets["test"].runtimeClasspath mustRunAfter(tasks.named("compileTestKotlin")) } kotlin { jvmToolchain(17) }