From f2085da26687ce1416bad15816c720b71f1b370c Mon Sep 17 00:00:00 2001 From: Scott Gerring Date: Tue, 12 Dec 2023 15:35:56 +0100 Subject: [PATCH 1/3] Allow spotbugs to run from any subdirectory --- .mvn/README | 2 ++ checkstyle.xml | 2 +- pom.xml | 7 ++++++- 3 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 .mvn/README diff --git a/.mvn/README b/.mvn/README new file mode 100644 index 000000000..a851f5e55 --- /dev/null +++ b/.mvn/README @@ -0,0 +1,2 @@ +This is here purely so that we can get the root directory using maven.multiModuleProjectDirectory + diff --git a/checkstyle.xml b/checkstyle.xml index 34ef98ef2..680d8808c 100644 --- a/checkstyle.xml +++ b/checkstyle.xml @@ -51,7 +51,7 @@ - + diff --git a/pom.xml b/pom.xml index b7227cf8a..5e3d74d86 100644 --- a/pom.xml +++ b/pom.xml @@ -101,6 +101,10 @@ 1.0.6 0.6.0 1.5.0 + + + ${maven.multiModuleProjectDirectory} @@ -542,7 +546,7 @@ true - ../spotbugs-exclude.xml + ${project.rootdir}/spotbugs-exclude.xml @@ -639,6 +643,7 @@ maven-checkstyle-plugin 3.3.0 + basedir=${project.rootdir} checkstyle.xml true true From 45144e441255d344cf354f797d95c7607cd4fee8 Mon Sep 17 00:00:00 2001 From: Scott Gerring Date: Tue, 12 Dec 2023 16:29:02 +0100 Subject: [PATCH 2/3] Clean up spotbugs-exclude --- examples/spotbugs-exclude.xml | 20 ------ powertools-logging/spotbugs-exclude.xml | 30 -------- powertools-parameters/spotbugs-exclude.xml | 82 ---------------------- spotbugs-exclude.xml | 36 +++++++++- 4 files changed, 34 insertions(+), 134 deletions(-) delete mode 100644 examples/spotbugs-exclude.xml delete mode 100644 powertools-logging/spotbugs-exclude.xml delete mode 100644 powertools-parameters/spotbugs-exclude.xml diff --git a/examples/spotbugs-exclude.xml b/examples/spotbugs-exclude.xml deleted file mode 100644 index e33e65478..000000000 --- a/examples/spotbugs-exclude.xml +++ /dev/null @@ -1,20 +0,0 @@ - - - - - - - - - - - - \ No newline at end of file diff --git a/powertools-logging/spotbugs-exclude.xml b/powertools-logging/spotbugs-exclude.xml deleted file mode 100644 index 0437849ae..000000000 --- a/powertools-logging/spotbugs-exclude.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/powertools-parameters/spotbugs-exclude.xml b/powertools-parameters/spotbugs-exclude.xml deleted file mode 100644 index d48e9bee1..000000000 --- a/powertools-parameters/spotbugs-exclude.xml +++ /dev/null @@ -1,82 +0,0 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - \ No newline at end of file diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml index 2d61cc68d..dfdfcd44f 100644 --- a/spotbugs-exclude.xml +++ b/spotbugs-exclude.xml @@ -58,6 +58,18 @@ + + + + + + + + + + + + @@ -103,6 +115,26 @@ + + + + + + + + + + + + + + + + + + + + @@ -171,5 +203,5 @@ - - \ No newline at end of file + + From 5348252a5a7485b34c1fc0fd0188c606950425c4 Mon Sep 17 00:00:00 2001 From: Scott Gerring Date: Tue, 12 Dec 2023 16:37:08 +0100 Subject: [PATCH 3/3] Missed some --- spotbugs-exclude.xml | 29 ++++++++++++++++++++++++++++- 1 file changed, 28 insertions(+), 1 deletion(-) diff --git a/spotbugs-exclude.xml b/spotbugs-exclude.xml index dfdfcd44f..747752130 100644 --- a/spotbugs-exclude.xml +++ b/spotbugs-exclude.xml @@ -39,7 +39,34 @@ - + + + + + + + + + + + + + + + + + + + + + + + + + + + +