kapt
Kapt, short for Kotlin Annotation Processing Tool, is a compiler plugin that enables annotation processing for Kotlin code by leveraging Java annotation processors. It allows Kotlin projects to use libraries and frameworks that rely on annotation processing without rewriting their processors in Kotlin.
How it works: The Kotlin compiler with kapt generates Java-compatible stubs from Kotlin sources and runs standard
Usage: In Gradle-based projects, kapt is typically enabled by applying the Kotlin kapt plugin and declaring
Limitations and alternatives: Not all Java annotation processors are fully compatible with kapt, and kapt can