This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release/10.3.0
in repository https://gitbox.apache.org/repos/asf/logging-parent.git
The following commit(s) were added to refs/heads/release/10.3.0 by this push:
new 871e193 Add support for an optional `spotbugs-exclude.xml` file
871e193 is described below
commit 871e1933845d9cf28d1cddb5c70996060da56734
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Mon Nov 6 11:11:50 2023 +0100
Add support for an optional `spotbugs-exclude.xml` file
---
pom.xml | 27 +++++++++++++++++++++++++++
src/changelog/10.3.0/add-spotbugs-exclude.xml | 9 +++++++++
src/site/_release-notes/_10.3.0.adoc | 1 +
3 files changed, 37 insertions(+)
diff --git a/pom.xml b/pom.xml
index 1ecc7ac..dd0db10 100644
--- a/pom.xml
+++ b/pom.xml
@@ -1522,6 +1522,33 @@ import org.apache.commons.codec.digest.*;
</profile>
+ <!-- Adds exclusion filter to Spotbugs, if present -->
+ <profile>
+
+ <id>spotbugs-exclude</id>
+
+ <activation>
+ <file>
+
<exists>${maven.multiModuleProjectDirectory}/spotbugs-exclude.xml</exists>
+ </file>
+ </activation>
+
+ <build>
+ <plugins>
+
+ <plugin>
+ <groupId>com.github.spotbugs</groupId>
+ <artifactId>spotbugs-maven-plugin</artifactId>
+ <configuration>
+
<excludeFilterFile>${maven.multiModuleProjectDirectory}/spotbugs-exclude.xml</excludeFilterFile>
+ </configuration>
+ </plugin>
+
+ </plugins>
+ </build>
+
+ </profile>
+
</profiles>
</project>
diff --git a/src/changelog/10.3.0/add-spotbugs-exclude.xml
b/src/changelog/10.3.0/add-spotbugs-exclude.xml
new file mode 100644
index 0000000..2aa802f
--- /dev/null
+++ b/src/changelog/10.3.0/add-spotbugs-exclude.xml
@@ -0,0 +1,9 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<entry xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xmlns="http://logging.apache.org/log4j/changelog"
+ xsi:schemaLocation="http://logging.apache.org/log4j/changelog
https://logging.apache.org/log4j/changelog-0.1.2.xsd"
+ type="added">
+ <description format="asciidoc">
+ Add support for an optional `spotbugs-exclude.xml` file in each repo.
+ </description>
+</entry>
diff --git a/src/site/_release-notes/_10.3.0.adoc
b/src/site/_release-notes/_10.3.0.adoc
index 6cfedd7..7ff2207 100644
--- a/src/site/_release-notes/_10.3.0.adoc
+++ b/src/site/_release-notes/_10.3.0.adoc
@@ -46,6 +46,7 @@ This minor release contains several small improvements.
* Add support to extend the `bnd-maven-plugin` configuration with
`bnd-extra-config` property
(https://github.com/apache/logging-log4j2/issues/1895[apache/logging-log4j2#1895])
* Add support to replace `project.build.outputTimestamp` Maven property in CI
(https://github.com/apache/logging-parent/issues/50[50])
* Add XSLT transformation step to add a deterministic `serialNumber` and VDR
links to the SBOM
+* Add support for an optional `spotbugs-exclude.xml` file in each repo.
==== Changed