hi guys, I am trying to add Kotlin support into m...
# announcements
a
hi guys, I am trying to add Kotlin support into my existing Java/Maven project folks on the internet advice to execute
kotlin-maven-plugin
first and the
maven-compiler-plugin
but what if I have in Java annotation processing that is generating some source files, how can I call those from Kotlin?
follow instructions there
a
this I have seen but still the guide has no info on java-annotation-processing, imagine I do the setup as it is stated there, but Kotlin compilation will fail as java-annotation-processing has not been executed yet thus no required java classes were generated
n
a
but this is annotation processing for kotlin, and in my case I have annotation processing for java
n
are you sure? looks a lot like java is in here too
Copy code
<sourceDirs>
  <sourceDir>src/main/kotlin</sourceDir>
  <sourceDir>src/main/java</sourceDir>
</sourceDirs>
a
I will try, thank you
👍 1
n
i’m not saying it will work i’m just saying it looks like it
a
sure, no problem
👍 1
n
did it work?
a
kapt is not triggered if there are no koltin sources
😞 1
that is what I am trying to overcome right now
in fact I made a PR for maven plugin, so as soon as this is merged then this scenario will work
n
great! but i’m a bit surprised you were the first to have this issue
a
me too 😉
😂 1