can someone tell me how to configure maven to comp...
# announcements
d
can someone tell me how to configure maven to compile java code before kotlin? I'm using lombok on my java classes and kotlin can't access the accessors / mutators
m
One of my teammates was able to get this 'working' with Gradle but it was a total hack. I'll dig up the notes, but I don't recall it being pleasant, and we never incorporated it. We just replaced Lombok with Kotlin right away. I suspect it won't be possible to do in maven due to its rigidity. I've also had issues occasionally in Intellij with both Lombok and Kotlin plugins active. Resolved by disabling the Lombok plugin.
a
Have you tried moving the Java code to a separate module that your Kotlin module then depends on?