From e047ca3d6b3c00c844eccebb443048ee0a5cc822 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Mon, 20 Dec 2021 16:18:21 -0500 Subject: [PATCH] [alignment] Update deprecated output argument for spotbugs 4.5.x fixes #369 --- .../groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy index 02fe741b..5e609050 100644 --- a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy +++ b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy @@ -857,10 +857,10 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { } if(!sarifOutput) { - args << "-xml:withMessages" + args << "-xml:withMessages=" + tempFile.getAbsolutePath() } else { - args << "-sarif" + args << "-sarif=" + tempFile.getAbsolutePath() } args << "-auxclasspathFromInput" @@ -956,10 +956,6 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { args << maxRank } - args << "-output" - args << tempFile.getAbsolutePath() - - if (classFilesDirectory.exists() && classFilesDirectory.isDirectory()) { log.debug(" Adding to Source Directory ->" + classFilesDirectory.absolutePath) args << classFilesDirectory.absolutePath