-
In Java, there is MapStruct which uses annotation processing. However, it seems somewhat incompatible with Kotlin.
-
CodeRabbit
CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
-
While searching for similar libraries, I found Mappie, which looked promising, so I’d like to introduce it here.
-
konvert
This kotlin compiler plugin is using KSP API and generates kotlin code to map one class to another
(Incidentally, there’s also konvert. It appears quite similar to MapStruct in terms of usage, but because it’s annotation-based, it might lack flexibility. Hence, this time I’ll introduce Mappie.)