kotlin { jvm() js() sourceSets { val commonMain by getting { dependencies { implementation(kotlin("stdlib-common")) //omitted } } val commonTest by getting { dependencies { implementation(kotlin("test-common")) implementation(kotlin("test-annotations-common")) //omitted } } val jvmMain by getting { dependencies { implementation(kotlin("stdlib-jdk8")) //omitted } } val jvmTest by getting { dependencies { implementation("org.jetbrains.kotlin:kotlin-test:${Vof.kotlin}") implementation("org.jetbrains.kotlin:kotlin-test-junit:${Vof.kotlin}") //omitted } } val jsMain by getting { dependencies { implementation(kotlin("stdlib-js")) //omitted } } val jsTest by getting { dependencies { //omitted } } } publishing { publications.withType().forEach { it.configureMavenPom(isRelease, project) signing { if (isRelease) sign(it) } } setMavenRepositories(isRelease, properties) } }