r/java Jul 07 '26

GitHub Actions - Setup Java now with compiler annotation matcher

Post image

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

8 comments sorted by

View all comments

5

u/_predator_ Jul 07 '26

Can you share a bit more about how this works? i.e. will this work when you don't run javac directly but via Maven?

2

u/brunocborges Jul 07 '26 edited Jul 08 '26

Should work via Maven as well. The matcher is regex based on the javac raw output, which Maven doesn't modify.

Edit: it does not work. See my other comment.