Egor
07/06/2020, 10:04 AMDuplicate JVM class name 'B_main' generated from: Myscript, Myscript error.
In this case I used gradle for the build.
I tried with it with custom Kotlin script template as well as with ‘main.kts’ template. The result is the same.
I checked in gradle build directory and saw that script generated classes resides on the top level and not in separate packages ( packageA and packageB).
How can I fix it?ilya.chernikov
07/06/2020, 10:19 AMpackage directive is available for scripts, the behaviour here is not different from the regular sources. It is not enough to put scripts into the package directory. to assign the package automatically.Egor
07/06/2020, 10:27 AMilya.chernikov
07/06/2020, 10:47 AMEgor
07/06/2020, 12:45 PM