plugins {
kotlin("multiplatform")
kotlin("plugin.serialization")
`maven-publish`
}
repositories {
mavenCentral()
}
val ktor_version = "1.6.1"
val klockVersion = "2.2.0"
dependencies {
commonMainImplementation("org.jetbrains.kotlinx:kotlinx-serialization-json:1.3.2")
commonMainImplementation("com.soywiz.korlibs.klock:klock:$klockVersion")
}
kotlin {
jvm {
compilations.all {
kotlinOptions.jvmTarget = "1.8"
}
withJava()
testRuns["test"].executionTask.configure {
useJUnitPlatform()
}
}
js(BOTH) {
browser {
commonWebpackConfig {
cssSupport.enabled = true
}
}
}
sourceSets {
val commonMain by getting
val commonTest by getting {
dependencies {
implementation(kotlin("test"))
}
}
val jvmMain by getting
val jvmTest by getting
val jsMain by getting
val jsTest by getting
}
}