phantasmal-world/lib/build.gradle.kts
2020-10-10 23:48:38 +02:00

42 lines
848 B
Plaintext

plugins {
kotlin("multiplatform")
}
val kotlinLoggingVersion: String by project.extra
kotlin {
js {
browser()
}
sourceSets {
all {
languageSettings.useExperimentalAnnotation("kotlin.ExperimentalUnsignedTypes")
}
commonMain {
dependencies {
api(project(":core"))
api("io.github.microutils:kotlin-logging:$kotlinLoggingVersion")
}
}
commonTest {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
}
}
tasks.register("test") {
dependsOn("allTests")
}