Hi mates, at Kotlin we are currently investigating...
# compiler
m
Hi mates, at Kotlin we are currently investigating the interplay between Java entities and Kotlin annotations and compiler plugins. The question we want to ask you all amazing Kotlin compiler plugin authors is:
Do you ever encounter the need to do something in a Kotlin compiler plugin for a Java declaration depending on whether this declaration has a Kotlin annotation?
We are interested in this, because resolve of such Kotlin annotations for Java entities is non-trivial, and we want to hear what the use-cases are to come up with a good solution. Post your use-cases in the 🧵, thanks!
K 1
h
I want to generate the service declaration resource file to support JVM ServiceLoader but for Java interoperability, I need a ksp plugin because the kotlin compiler does not support analyzing local Java source files. The annotation is a Kotlin annotation class.
✍️ 1
thank you color 1