plugins { kotlin("multiplatform") kotlin("plugin.serialization") } val kotlinSerialization = "1.0.0-RC" kotlin { jvm() js { browser() // necessary for local dependency from JS UI module } sourceSets { val commonMain by getting { dependencies { api("org.jetbrains.kotlinx:kotlinx-serialization-core:$kotlinSerialization") } } val commonTest by getting { dependencies { implementation(kotlin("test-common")) implementation(kotlin("test-annotations-common")) } } val jvmTest by getting { dependencies { implementation(kotlin("test")) implementation(kotlin("test-junit")) } } val jsTest by getting { dependencies { implementation(kotlin("test-js")) } } } }