Thanks for the link. I didn’t find that one earlier (only finding a somewhat outdated page which was about the intellij internal build system).
Kotlin sources can be stored with Java sources in the same folder, or placed to different folders. The default convention is using different folders:
- project
- src
- main (root)
- kotlin
- java
This is somewhat misleading though. It sounds like it doesn’t matter where you put the java or kotlin files as can be in in either folder and it is just recommended to split them up. Is that just me reading this that way?
I know the next line qualifies that somewhat but I’m not sure it is enough:
The corresponding
sourceSets
property should be updated if not using the default convention:
Anyone else thinks this should be adjusted? If so I can write a quick PR to change it.