From dd1a46272b305c853e16f29344115f51f4e90476 Mon Sep 17 00:00:00 2001 From: Stephen Kitt Date: Thu, 29 Mar 2018 07:48:03 -0700 Subject: [PATCH] Use SpotBugs 3.1.2, and NP_NONNULL_PARAM_VIOLATION This patch upgrades the SpotBugs plugin to 3.1.3 and the engine to 3.1.2. The changelog is https://github.com/spotbugs/spotbugs/blob/3.1.2/CHANGELOG.md SpotBugs 3.1.2 supports the nullable annotations in Checker Framework (see https://github.com/spotbugs/spotbugs/commit/dd436ff56abf0273a080ad228fcf5abd8ee3a097 for the patch), so we can re-enable NP_NONNULL_PARAM_VIOLATION when using SpotBugs. This involves using a separate configuration, so this patch splits everything out, including the report directory for projects which run both FindBugs and SpotBugs. Change-Id: I8cb110f12d79414d476b7a6c525412f3b7e2c188 Signed-off-by: Stephen Kitt --- odlparent/pom.xml | 10 ++-- pom.xml | 1 + spotbugs/pom.xml | 51 +++++++++++++++++++ .../src/main/resources/spotbugs-exclude.xml | 19 +++++++ 4 files changed, 76 insertions(+), 5 deletions(-) create mode 100644 spotbugs/pom.xml create mode 100644 spotbugs/src/main/resources/spotbugs-exclude.xml diff --git a/odlparent/pom.xml b/odlparent/pom.xml index ae41889f8..0e00a47f1 100644 --- a/odlparent/pom.xml +++ b/odlparent/pom.xml @@ -1434,16 +1434,16 @@ com.github.spotbugs spotbugs-maven-plugin - 3.1.1 + 3.1.3 com.github.spotbugs spotbugs - 3.1.1 + 3.1.2 org.opendaylight.odlparent - findbugs + spotbugs 4.0.0-SNAPSHOT @@ -1467,11 +1467,11 @@ false - findbugs-exclude.xml + spotbugs-exclude.xml true - ${project.build.directory}/findbugs + ${project.build.directory}/spotbugs checkstyle findbugs + spotbugs license diff --git a/spotbugs/pom.xml b/spotbugs/pom.xml new file mode 100644 index 000000000..48361305d --- /dev/null +++ b/spotbugs/pom.xml @@ -0,0 +1,51 @@ + + 4.0.0 + + + org.opendaylight.odlparent + odlparent-lite + 4.0.0-SNAPSHOT + ../odlparent-lite + + + spotbugs + ODL :: odlparent :: ${project.artifactId} + + + + + + maven-jar-plugin + 3.0.2 + + + maven-resources-plugin + 3.0.1 + + + + + + + scm:git:ssh://git.opendaylight.org:29418/odlparent.git + scm:git:ssh://git.opendaylight.org:29418/odlparent.git + HEAD + https://wiki.opendaylight.org/view/ODL_Root_Parent:Main + + + + ${odl.site.url}/${project.groupId}/${stream}/${project.artifactId}/ + + + opendaylight-site + ${nexus.site.url}/${project.artifactId}/ + + + + diff --git a/spotbugs/src/main/resources/spotbugs-exclude.xml b/spotbugs/src/main/resources/spotbugs-exclude.xml new file mode 100644 index 000000000..28168cb82 --- /dev/null +++ b/spotbugs/src/main/resources/spotbugs-exclude.xml @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + + + -- 2.36.6