plugins { kotlin("multiplatform") kotlin("plugin.serialization") } kotlin { jvm() js { browser() // necessary for local dependency from JS UI module } sourceSets { all { languageSettings.useExperimentalAnnotation("kotlin.RequiresOptIn") languageSettings.useExperimentalAnnotation("kotlin.time.ExperimentalTime") } val commonMain by getting { dependencies { api(libs.kotlinx.serialization.core) } } 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")) } } } }