Stylianos Gakis
08/31/2022, 8:18 AMsrc/**/java
or src/**/kotlin
and then gradle recognizes those two as separate source sets. For example there’s a bug in ktlint-gradle
since it doesn’t handle that case. We’ve now migrated from that plugin and can use the kotlin
name, but question is, should we? Is there any build speed or anything really that would improve by doing such a move?
Our project is 100% Kotlin already and will stay so too.tapchicoma
08/31/2022, 8:33 AMStylianos Gakis
08/31/2022, 8:38 AMVampire
08/31/2022, 10:11 AMsrc/**/java
was afair just to ease the incremental migration of Java projects to Kotlin so that all sources can be kept along.
But actually it is not really following the Gradle standard of having separate directories for separate languages. I personally don't really like it if there are foreign files, it just feels wrong to have Kotlin files in the java
folder. And more so if it is a pure Kotlin project.Stylianos Gakis
08/31/2022, 11:12 AMkotlin
just cause it simply felt weird to name it java
where we had 0% java code in any of our modules.tapchicoma
08/31/2022, 3:11 PMsrc/main/kotlin
any .java
file will not be compiled by :compileJava
taskStylianos Gakis
08/31/2022, 3:15 PMtapchicoma
09/01/2022, 3:58 PM