This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-logging.git
The following commit(s) were added to refs/heads/master by this push:
new 82d61a5 Configure SpotBugs
82d61a5 is described below
commit 82d61a586a9bff51dd8c681991990bfe90c9c216
Author: Gary Gregory <[email protected]>
AuthorDate: Sun Nov 26 15:22:36 2023 -0500
Configure SpotBugs
---
pom.xml | 27 ++++++++++++++++++++++++++-
src/conf/spotbugs-excludes.xml | 18 ++++++++++++++++++
2 files changed, 44 insertions(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index 8a042ce..8dcba4e 100644
--- a/pom.xml
+++ b/pom.xml
@@ -549,6 +549,7 @@ under the License.
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<configLocation>${basedir}/checkstyle.xml</configLocation>
+ <includeTestSourceDirectory>true</includeTestSourceDirectory>
<enableRulesSummary>false</enableRulesSummary>
</configuration>
</plugin>
@@ -563,7 +564,20 @@ under the License.
</rulesets>
</configuration>
</plugin>
-
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+
<excludeFilterFile>src/conf/spotbugs-excludes.xml</excludeFilterFile>
+ <plugins>
+ <plugin>
+ <groupId>com.h3xstream.findsecbugs</groupId>
+ <artifactId>findsecbugs-plugin</artifactId>
+ <version>${findsecbugs.version}</version>
+ </plugin>
+ </plugins>
+ </configuration>
+ </plugin>
</plugins>
</build>
@@ -661,6 +675,16 @@ under the License.
<plugin>
<groupId>com.github.spotbugs</groupId>
<artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+
<excludeFilterFile>src/conf/spotbugs-excludes.xml</excludeFilterFile>
+ <plugins>
+ <plugin>
+ <groupId>com.h3xstream.findsecbugs</groupId>
+ <artifactId>findsecbugs-plugin</artifactId>
+ <version>${findsecbugs.version}</version>
+ </plugin>
+ </plugins>
+ </configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
@@ -706,6 +730,7 @@ under the License.
<log4j2.version>2.21.1</log4j2.version>
<logback.version>1.3.11</logback.version>
<slf4j.version>2.0.9</slf4j.version>
+ <findsecbugs.version>1.12.0</findsecbugs.version>
<commons.osgi.import>
javax.servlet;version="[2.1.0, 3.0.0)";resolution:=optional,
diff --git a/src/conf/spotbugs-excludes.xml b/src/conf/spotbugs-excludes.xml
new file mode 100644
index 0000000..7358e4b
--- /dev/null
+++ b/src/conf/spotbugs-excludes.xml
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+Licensed to the Apache Software Foundation (ASF) under one or more
+contributor license agreements. See the NOTICE file distributed with
+this work for additional information regarding copyright ownership.
+The ASF licenses this file to You under the Apache License, Version 2.0
+(the "License"); you may not use this file except in compliance with
+the License. You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+Unless required by applicable law or agreed to in writing, software
+distributed under the License is distributed on an "AS IS" BASIS,
+WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+See the License for the specific language governing permissions and
+limitations under the License.
+-->
+<FindBugsFilter></FindBugsFilter>