My project's build.gradle is in Groovy but I'd like to run as a gradle task the main function of a Kotlin class in a root directory kt file.
I don't know where to begin in terms of syntax.
something like this? I came up with this after searching around a bit.
task doKotlinTask(type: JavaExec) {
classpath "/"
main = "KotlinTaskKt"
}