Hi, I asked this question in the compiler channel ...
# general-advice
e
Hi, I asked this question in the compiler channel a few days ago, and I've realized compiler plugins are probably not the way to do this. Is there something that I've missed that can be used for this? Or am I gonna have to edit the sources as text directly?
r
Hi, If I understand correctly, you want a Deprecated annotation added to the generated code based on another annotation in your code. I think you should use a compiler plugin, but I don't know of one that does that.

https://youtu.be/9P7qUGi5_gc?si=dUr4RMZgBU8oKiRg

great video to create a compiler plugin The problem or difficulty will be linking the generated code to your annotation in the source code. One option would be to search by package. It would be simpler to use some option in the processor that generates the code or manually add all the generated code to your project, remove the processor or trigger, and manually mark everything as deprecated.