Make Java problem matcher opt-in (#1326)

Default the problem-matcher input to false so setup-java no longer
registers Java compiler and uncaught-exception annotations unless
explicitly enabled with problem-matcher: true.

Fixes #1322

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
Bruno BorgesandCopilot App authored and GitHub committed 2026-11-13 23:47:17 -05:00
1 parent 5fb63c9bc9
commit d1374f8ac7
6 files changed
+21 -12

No files matched your search

+1 -1
View File
@@ -3,7 +3,7 @@ import {INPUT_PROBLEM_MATCHER} from './constants.js';
import {getBooleanInput} from './util.js';
export function configureProblemMatcher(matcherPath: string): void {
const problemMatcherEnabled = getBooleanInput(INPUT_PROBLEM_MATCHER, true);
const problemMatcherEnabled = getBooleanInput(INPUT_PROBLEM_MATCHER, false);
if (!problemMatcherEnabled) {
core.debug('Java problem matcher is disabled');