Philip Dukhov
02/10/2022, 3:48 AMsrc/kotlin
and src/java
, what are the benefits in using src/kotlin
? I guess it's easier to process, but I wan't being able to found any details.andylamax
02/10/2022, 6:13 AMsrc/kotlin
and java file in src/java
. While this is not a must (as you have noticed), It just makes finding things easier.
There are not processing benefits in placing kotlin/java files in one directory over anotherarekolek
02/10/2022, 9:21 AMsrc/java
, separating classes by language doesn't make any sense to me, but it does cause confusion from time to time
for example if you convert a class from java to kotlin you need to remember to move it to src/kotlin
so there are drawback and I never saw any benefits
if you have a kotlin only codebase, then I guess having src/kotlin
is nicer, since src/java
makes little sense if there's no javaVampire
02/10/2022, 9:40 AMjava
folder to easier migrate a Java codebase step-by-step and thus made it in their Kotlin plugin so that you can have them in both places.
Imho it is totally unclear if you have Kotlin files in a java
folder.
Technically there should not be any difference which you choose, the Kotlin compile task just taskes all Kotlin files from both folders.arekolek
02/10/2022, 10:00 AMVampire
02/10/2022, 10:03 AMVampire
02/10/2022, 10:14 AMsrc
, that's also just a configuration option away.