phantasmal-world/core/build.gradle.kts
2020-12-05 21:48:26 +01:00

43 lines
919 B
Plaintext

plugins {
kotlin("multiplatform")
}
val coroutinesVersion: String by project.ext
val kotlinLoggingVersion: String by project.extra
kotlin {
js {
browser {}
}
jvm()
sourceSets {
commonMain {
dependencies {
api("org.jetbrains.kotlinx:kotlinx-coroutines-core:$coroutinesVersion")
api("io.github.microutils:kotlin-logging:$kotlinLoggingVersion")
}
}
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
getByName("jsTest") {
dependencies {
implementation(kotlin("test-js"))
}
}
getByName("jvmTest") {
dependencies {
implementation(kotlin("test-junit"))
}
}
}
}