My build.gradle
looks like this:
plugins {
id 'org.jetbrains.kotlin.multiplatform' version '1.3.41'
}
kotlin {
mingwX64("mingw") {
binaries {
executable {
entryPoint = 'app.AppKt'
runTask?.args('')
}
}
}
sourceSets {
mingwMain {
repositories {
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.3.0-M1'
implementation "no.tornado:tornadofx:1.7.19"
}
}
mingwTest {
}
}
}
And it doesn't work. Idea says unresolved reference.
I'm was search about it in web. Some people says that TornadoFx supports Kotlin/Native.
TornadoFX doesn't work with Kotlin/Native, because it depends upon JavaFX, which is made for JVM, so it only works in Kotlin/JVM.