From f2baf856168d271880b239bf7cc617149bdc8c20 Mon Sep 17 00:00:00 2001 From: Jeremy Landis Date: Mon, 11 Nov 2024 14:30:08 -0500 Subject: [PATCH] [maven] Update deprecated code from current project call for reports plugin --- src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy index b5e95c86..7edf31ed 100644 --- a/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy +++ b/src/main/groovy/org/codehaus/mojo/spotbugs/SpotBugsMojo.groovy @@ -755,7 +755,7 @@ class SpotBugsMojo extends AbstractMavenReport implements SpotBugsPluginsTrait { return true } - List reportPlugins = session.getCurrentProject().getReportPlugins() + List reportPlugins = session.getCurrentProject().getModel().getReporting().getPlugins() boolean isEnabled