Consuming/building Java's @Builder Pojos in Kotlin

You cannot mix Java source with Lombok annotations and Kotlin in same module, because Lombok generates getters, setters etc at post compile phase. Builder is a part of byte code but it isn’t present in source code. You should split your Java with Lombok and Kotlin code into separate modules.

The issue with Lombok was already disuccess here.

2 Likes