https://kotlinlang.org logo
#announcements
Title
# announcements
d

df

11/15/2019, 10:02 AM
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

Mike

11/15/2019, 11:21 AM
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

Andrew Middleton

11/15/2019, 2:53 PM
Have you tried moving the Java code to a separate module that your Kotlin module then depends on?
2 Views