Compile .kt files nested in folders with kotlinc

280 Views Asked by At

I want to use kotlinc to compile multiple files that are organized in folders, like in this minimal example:

enter image description here

Main.kt only calls helper.kt which contains

enter image description here

When I call: kotlinc *.kt -include-runtime -d Main.jar

I get the error

enter image description here

I guess the problem is that *.kt doesn't compile files nested in folders. How do I change that? I didn't find a flag for it in the kotlinc documentation.

0

There are 0 best solutions below