Project source directory structure

I've been away from Kotlin for a while…

I used to have all source files in the src directory no matter what the package a file contributed to. This used to work fine, and for my small little projects worked better than the Java/Scala/Groovy set up of having a directory hierarchy matching the package structure. Now however IntelliJ IDEA is complaining about the package statement since the file does not reside in the correct location in the directory hierarchy. Has the strategy for Kotlin changed to match the Java/Groovy/Scala one?

The old structure still works fine and will remain supported. The warning is there because the directory hierarchy matching the package structure is the most sane way to support mixed Java/Kotlin projects. If you don't have any Java code in your project and aren't planning to have it, you can turn off the inspection in the project settings.