Hi Kotlin folks, is there any library or compiler ...
# announcements
s
Hi Kotlin folks, is there any library or compiler plugin available to generate builders (java compatibility is very important) from Kotlin Data classes. SO has a lot of suggestions for this problem, but most of them requires way more boilerplate than expected.
🤷 1
t
Is it an option to keep your builders on the Java side? Or write them in Java in like an anti-corruption layer package of some sort?
s
Is it an option to keep your builders on the Java side?
All these data classes are used for kotlinx-serialization, so i don’t think that’s an option i can explore. Java i used to have Google autovalue builder and that require too much boiler plate and that’s one of the reason to move to kotlin data classes :)