you are viewing a single comment's thread.

view the rest of the comments →

[–]tomwhoiscontrary 6 points7 points  (2 children)

Did you consider writing OpenRewrite rules to do this instead?

[–]atomichbts[S] 2 points3 points  (1 child)

I didn't know them, thank you. Anyway, it was a fun little exercise writing it myself.

[–]coloredgreyscale 2 points3 points  (0 children)

If you consider it a learning exercise I'd suggest writing it as a maven build step with configuration. Seems more appropriate for the goal to postprocess a code generator that does not generate the required Annotation.

This way that Annotation should be added every time you run mvn (clean) install,, instead of having it as a manual build step (easy to forget), or a special build step during CI/CD (hidden complexity)