https://kotlinlang.org logo
#kapt
Title
# kapt
l

Luca Piccinelli

03/24/2021, 9:06 AM
hey there i'm trying to learn Kapt annotation processing. I have this toy project, with a
@TestAnnotation
, a
Hello
class annotated, and a
TestProcessor
that generates a new class named "<AnnotatedClassName>_Banana" with a method
eat
, in this case
Hello_Banana
. Everything is in place correctly, and from maven it works just fine. How should I let Intellij use the annotation processor as well? I tried like in the second screendshot but with no luck... Thank you in advance you for your help
ok... from official kotlin Kapt documentation
Please note that kapt is still not supported for IntelliJ IDEA’s own build system. Launch the build from the “Maven Projects” toolbar whenever you want to re-run the annotation processing.
😞
anyway... doing the build with maven does the trick