If you put Java and Kotlin code in different modules, it should work. Rationale: Kotlin will see whatever declarations get to the byte code, but it can’t see whatever Lombok generates on-the-fly in the source code
Well we use Java and Kotlin in the same module and I cannot imagine splitting it between modules as we are slowly rewriting everything to Koltin. I tried to add the kapt preprocessor, but it still complains that cannot access “field”: it is private in “Entity”.