currently i am implementing something for kgl, a gradle plugin in
buildSrc
that generates source for different targets,
not sure hw much info you can get about annotations before compilation, but if you can configure your codegen in a different way it is a viable option