xref: /aosp_15_r20/external/kotlinx.coroutines/test-utils/build.gradle.kts (revision 7a7160fed73afa6648ef8aa100d4a336fe921d9a)
1*7a7160feSAndroid Build Coastguard Worker /*
2*7a7160feSAndroid Build Coastguard Worker  * Copyright 2016-2021 JetBrains s.r.o. Use of this source code is governed by the Apache 2.0 license.
3*7a7160feSAndroid Build Coastguard Worker  */
4*7a7160feSAndroid Build Coastguard Worker 
<lambda>null5*7a7160feSAndroid Build Coastguard Worker kotlin {
6*7a7160feSAndroid Build Coastguard Worker     sourceSets {
7*7a7160feSAndroid Build Coastguard Worker         commonMain.dependencies {
8*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-test-common:${version("kotlin")}")
9*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-test-annotations-common:${version("kotlin")}")
10*7a7160feSAndroid Build Coastguard Worker         }
11*7a7160feSAndroid Build Coastguard Worker         jvmMain.dependencies {
12*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-test:${version("kotlin")}")
13*7a7160feSAndroid Build Coastguard Worker             // Workaround to make addSuppressed work in tests
14*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-reflect:${version("kotlin")}")
15*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-stdlib-jdk7:${version("kotlin")}")
16*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-test-junit:${version("kotlin")}")
17*7a7160feSAndroid Build Coastguard Worker             api("junit:junit:${version("junit")}")
18*7a7160feSAndroid Build Coastguard Worker         }
19*7a7160feSAndroid Build Coastguard Worker         jsMain.dependencies {
20*7a7160feSAndroid Build Coastguard Worker             api("org.jetbrains.kotlin:kotlin-test-js:${version("kotlin")}")
21*7a7160feSAndroid Build Coastguard Worker         }
22*7a7160feSAndroid Build Coastguard Worker         val wasmJsMain by getting {
23*7a7160feSAndroid Build Coastguard Worker             dependencies {
24*7a7160feSAndroid Build Coastguard Worker                 api("org.jetbrains.kotlin:kotlin-test-wasm-js:${version("kotlin")}")
25*7a7160feSAndroid Build Coastguard Worker             }
26*7a7160feSAndroid Build Coastguard Worker         }
27*7a7160feSAndroid Build Coastguard Worker     }
28*7a7160feSAndroid Build Coastguard Worker }
29