buildscript { extra.set("production", (findProperty("prod") ?: findProperty("production") ?: "false") == "true") } plugins { kotlin("multiplatform") id("maven-publish") } repositories() // Versions val serializationVersion: String by project kotlin { kotlinJsTargets() kotlinJvmTargets() sourceSets { val commonMain by getting { dependencies { implementation(kotlin("stdlib-common")) implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-common:$serializationVersion") } } val jsMain by getting { dependencies { implementation(kotlin("stdlib-js")) implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime-js:$serializationVersion") } } val jvmMain by getting { dependencies { implementation(kotlin("stdlib")) implementation("org.jetbrains.kotlinx:kotlinx-serialization-runtime:$serializationVersion") } } } } publishing { publications.withType { if (name == "kotlinMultiplatform") artifactId = "kvision-common-annotations" pom { defaultPom() } } } setupPublication()