1 @file:Suppress("PropertyName") <lambda>null2plugins { 3 kotlin("jvm") 4 } 5 6 val coroutines_version: String by project 7 <lambda>null8repositories { 9 if (project.properties["build_snapshot_train"]?.toString()?.toBoolean() == true) { 10 maven("https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev") 11 } 12 mavenLocal() 13 mavenCentral() 14 } 15 <lambda>null16java { 17 modularity.inferModulePath.set(true) 18 } 19 <lambda>null20kotlin { 21 jvmToolchain(17) 22 23 val test = target.compilations.getByName("test") 24 target.compilations.create("debugDynamicAgentJpmsTest") { 25 associateWith(test) 26 27 28 defaultSourceSet.dependencies { 29 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version") 30 implementation("org.jetbrains.kotlinx:kotlinx-coroutines-debug:$coroutines_version") 31 } 32 33 tasks.register<Test>("debugDynamicAgentJpmsTest") { 34 testClassesDirs = output.classesDirs 35 classpath = javaSourceSet.runtimeClasspath 36 } 37 } 38 } 39 <lambda>null40tasks.named("check") { 41 dependsOn(tasks.withType<Test>()) 42 } 43 <lambda>null44dependencies { 45 testImplementation(kotlin("test-junit")) 46 } 47 48