You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What is the recommended usage for a project using the kotlin-multiplatform plugin? For example taking the template Kotlin multiplatform library project in IntelliJ IDEA (after updating the gradle scripts to use the Kotlin dsl).
I believe both references come from kotlin("jvm") version "1.3.31" in your example project however adding this conflicts with the kotlin-multiplatform plugin.
plugins {
id("kotlin-multiplatform") version "1.3.41"
id("se.jensim.kt2ts") version "0.11.0"
}
repositories {
mavenCentral()
}
group = "com.example"
version = "0.0.1"
kotlin {
js()
jvm()
macosX64("macos")
sourceSets {
val commonMain by getting {
dependencies {
implementation(kotlin("stdlib-common"))
}
}
val commonTest by getting {
dependencies {
implementation(kotlin("test-common"))
implementation(kotlin("test-annotations-common"))
}
}
val jvmMain by getting {
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
}
val jvmTest by getting {
dependencies {
implementation(kotlin("test"))
implementation(kotlin("test-junit"))
}
}
val jsMain by getting {
dependencies {
implementation(kotlin("stdlib-js"))
}
}
val jsTest by getting {
dependencies {
implementation(kotlin("test-js"))
}
}
val macosMain by getting {
dependencies {
implementation(kotlin("stdlib-native"))
}
}
val macosTest by getting {
}
}
}
kt2ts {
output {
annotation = "com.example.ToTypescript"
outputFile = file("$buildDir/classes/kotlin/js/main/index.d.ts")
}
classFilesSources.compileTasks = listOf(tasks.compileKotlin, tasks.compileJava)
}
The text was updated successfully, but these errors were encountered:
What is the recommended usage for a project using the kotlin-multiplatform plugin? For example taking the template Kotlin multiplatform library project in IntelliJ IDEA (after updating the gradle scripts to use the Kotlin dsl).
I get the following errors
I believe both references come from
kotlin("jvm") version "1.3.31"
in your example project however adding this conflicts with the kotlin-multiplatform plugin.The text was updated successfully, but these errors were encountered: