g

    Gunslingor

    2 years ago
    For the default setup what should the classpath be in this case?
    jvm() {
        compilations {
            val main by getting
            tasks {
                register<JavaExec>("run") {
                    setMain("com.project.MainAppKt")
                    println(main.output.classesDirs)
                    classpath = main.output.classesDirs
                }
            }
        }
    }
    Got it:
    classpath = main.output.classesDirs
    classpath += main.compileDependencyFiles