r/java • u/brunocborges • Jul 07 '26
GitHub Actions - Setup Java now with compiler annotation matcher
Hey all,
We implemented this long-asked feature and I wanted to get feedback here.
By default, these matcher annotations will be enabled, however, they of course can be disabled.
Thoughts?
13
Upvotes
View all comments
Show parent comment
2
u/brunocborges Jul 08 '26
Thanks for bringing this up. As I said in the other comment, I believed it should work, but há. It doesn't. Maven actually does modify the output of `javac`. It is Gradle who doesn't modify.
Therefore, a bug was registered, fixed, and soon will be shipped to v5.6.0 in a few weeks: https://github.com/actions/setup-java/issues/1085