https://kotlinlang.org logo
e

egorand

08/09/2020, 7:21 PM
Hey, I've got a
samples
module in my KMPP which has multiple Kotlin and Java files/classes with
main
methods, and I'm unable to run those in the IDE. When I click the Run button in the gutter the IDE just does absolutely nothing (IJ 2020.2, Kotlin plugin 1.3.72). The project structure is roughly this:
Copy code
samples
  src
    jvmMain
      kotlin
        // kotlin samples
      java
        // java samples
and
build.gradle
looks like this:
Copy code
apply plugin: 'org.jetbrains.kotlin.multiplatform'
apply plugin: 'application'

kotlin {
  jvm {
    withJava()
  }
  ...
}
Does anybody have a working example of a similar setup, or any thoughts on how to fix/debug it? Thanks!