https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
g

Gunslingor

04/02/2020, 12:15 AM
For the default setup what should the classpath be in this case?
Copy code
jvm() {
    compilations {
        val main by getting
        tasks {
            register<JavaExec>("run") {
                setMain("com.project.MainAppKt")
                println(main.output.classesDirs)
                classpath = main.output.classesDirs
            }
        }
    }
}
Got it:
Copy code
classpath = main.output.classesDirs
classpath += main.compileDependencyFiles