tapchicoma
02/28/2018, 9:30 PMmain.kt
should be always in src/main/kotlin
and not in src/main/kotlin/some/package
?ilya.matveev
03/01/2018, 9:44 AMmain
function should be in the root package. But you may specify a custom main
function using entryPoint
method in gradle:
program('Foo') {
entryPoint 'foo.bar.main'
}
or -e
flag in command line:
konanc -e foo.bar.main src