I know there was a plan for compiler plugins for f...
# announcements
s
I know there was a plan for compiler plugins for future. As of now, it is possible to have custom annotation applied to kotlin code for java code generation?
d
You can use normal Java annotation processors on your Kotlin code using Kapt. You can even generate Kotlin code. https://kotlinlang.org/docs/reference/kapt.html
s
Great, thanks
u
https://github.com/square/kotlinpoet can help you generate kotlin code using kapt
👍 1
s
Looks like kapt is the actual plugin 🙂 loading these processors
g
kapt is not actuall a plugin like “compiler plugin”, it’s a separate tool that replaces java apt
s
oh, i just found that under plugins directory
g
Actually you are right, kapt also part of compiler plugins, never noticed about this