blob: 26cd02b600ec7eff051350cc8c6e485a280c8e9c [file] [log] [blame]
plugins {
id 'org.jetbrains.kotlin.multiplatform'
}
repositories {
// Coroutines from the outer project are published by previous CI buils step
mavenLocal()
mavenCentral()
maven { url "https://maven.pkg.jetbrains.space/kotlin/p/kotlin/dev" }
}
kotlin {
jvm()
js(IR) {
nodejs()
}
sourceSets {
commonMain {
dependencies {
implementation kotlin('stdlib-common')
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutines_version"
}
}
commonTest {
dependencies {
implementation kotlin('test-common')
implementation kotlin('test-annotations-common')
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-test:$coroutines_version"
}
}
jsTest {
dependencies {
implementation kotlin('test-js')
}
}
jvmTest {
dependencies {
implementation kotlin('test')
implementation kotlin('test-junit')
}
}
}
targets {
configure([]) {
tasks.getByName(compilations.main.compileKotlinTaskName).kotlinOptions {
jvmTarget = "1.8"
}
}
}
}