From 946d4551ed2aa9c628099fd3ae190c6eb851da43 Mon Sep 17 00:00:00 2001 From: Jonas Kalderstam Date: Fri, 5 Feb 2016 16:15:39 +0100 Subject: [PATCH] Turn on findbugs and add annotation support It was already there as a plugin. I updated the version and enabled it to run during builds. Without failing them for now. Also adds dependencies to the findbugs annotations library, so one can use things like `@Nullable` and `@Nonnull`. --- community/function/pom.xml | 10 ++++ community/logging/pom.xml | 10 ++++ enterprise/pom.xml | 4 +- pom.xml | 47 ++++++++++++---- tools/pom.xml | 107 ++++++++++++++++++------------------- 5 files changed, 112 insertions(+), 66 deletions(-) diff --git a/community/function/pom.xml b/community/function/pom.xml index e35f1ba376dd5..452975120ff87 100644 --- a/community/function/pom.xml +++ b/community/function/pom.xml @@ -70,5 +70,15 @@ the relevant Commercial Agreement. mockito-core test + + com.google.code.findbugs + jsr305 + 3.0.0 + + + com.google.code.findbugs + annotations + 3.0.0 + diff --git a/community/logging/pom.xml b/community/logging/pom.xml index 7efd83edfd9a8..166a64af037ed 100644 --- a/community/logging/pom.xml +++ b/community/logging/pom.xml @@ -88,5 +88,15 @@ the relevant Commercial Agreement. commons-lang3 test + + com.google.code.findbugs + jsr305 + 3.0.0 + + + com.google.code.findbugs + annotations + 3.0.0 + diff --git a/enterprise/pom.xml b/enterprise/pom.xml index 18dbf9f5917d2..4b8840fa38e90 100644 --- a/enterprise/pom.xml +++ b/enterprise/pom.xml @@ -76,8 +76,8 @@ terms of the relevant Commercial Agreement. - org.neo4j.build.plugins - ease-maven-plugin + org.neo4j.build.plugins + ease-maven-plugin aggregate-artifacts diff --git a/pom.xml b/pom.xml index a2898e27b4f17..b4036da852063 100644 --- a/pom.xml +++ b/pom.xml @@ -46,6 +46,10 @@ + + org.codehaus.mojo + findbugs-maven-plugin + maven-surefire-plugin @@ -99,7 +103,33 @@ org.codehaus.mojo findbugs-maven-plugin - 2.5.2 + 3.0.3 + + + Max + + Medium + + false + + true + true + + ${project.build.directory}/findbugs + + + + + verify + + check + + + org.apache.maven.plugins @@ -312,15 +342,6 @@ - - org.codehaus.mojo - findbugs-maven-plugin - - true - true - - - @@ -542,6 +563,12 @@ + + org.codehaus.mojo + findbugs-maven-plugin + 3.0.3 + maven-plugin + com.google.code.gson gson diff --git a/tools/pom.xml b/tools/pom.xml index e6a5df5b8657a..96d4779600bd1 100644 --- a/tools/pom.xml +++ b/tools/pom.xml @@ -121,60 +121,59 @@ - - - - - maven-antrun-plugin - - - generate-version - none - - - - - org.apache.maven.plugins - maven-shade-plugin - 2.3 - + + + + + maven-antrun-plugin + + + generate-version + none + + + + + org.apache.maven.plugins + maven-shade-plugin + 2.3 + - - boltalyzer-jar - package - - shade - - - boltalyzer - - - org.neo4j.tools.boltalyzer.Boltalyzer - - - - - - - - txlog-jar - package - - shade - - - checktxlogs - - - org.neo4j.tools.txlog.CheckTxLogs - - - - - - - - - + + boltalyzer-jar + package + + shade + + + boltalyzer + + + org.neo4j.tools.boltalyzer.Boltalyzer + + + + + + + txlog-jar + package + + shade + + + checktxlogs + + + org.neo4j.tools.txlog.CheckTxLogs + + + + + + + + +