This is an automated email from the ASF dual-hosted git repository.
pkarwasz pushed a commit to branch release/2.21.0
in repository https://gitbox.apache.org/repos/asf/logging-log4j2.git
The following commit(s) were added to refs/heads/release/2.21.0 by this push:
new f0540d3d6e Remove `log4j-core` from some processor paths
f0540d3d6e is described below
commit f0540d3d6e4794d0c53365e1a83f0d31dccd84b7
Author: Piotr P. Karwasz <[email protected]>
AuthorDate: Fri Oct 6 11:58:53 2023 +0200
Remove `log4j-core` from some processor paths
There are many modules that do not depend on `log4j-core` and they can
be easily built without it on the processor path.
---
log4j-api-test/pom.xml | 15 +++++++++++++++
log4j-appserver/pom.xml | 18 ++++++++++++++++++
log4j-iostreams/pom.xml | 18 ++++++++++++++++++
log4j-jcl/pom.xml | 18 ++++++++++++++++++
log4j-jpl/pom.xml | 19 +++++++++++++++++++
log4j-slf4j-impl/pom.xml | 17 +++++++++++++++++
log4j-slf4j2-impl/pom.xml | 17 +++++++++++++++++
log4j-to-jul/pom.xml | 19 +++++++++++++++++++
log4j-to-slf4j/pom.xml | 18 ++++++++++++++++++
9 files changed, 159 insertions(+)
diff --git a/log4j-api-test/pom.xml b/log4j-api-test/pom.xml
index 1064727462..1451491738 100644
--- a/log4j-api-test/pom.xml
+++ b/log4j-api-test/pom.xml
@@ -133,6 +133,21 @@
<build>
<plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
diff --git a/log4j-appserver/pom.xml b/log4j-appserver/pom.xml
index 513a6afdb9..e0b46ef94d 100644
--- a/log4j-appserver/pom.xml
+++ b/log4j-appserver/pom.xml
@@ -73,4 +73,22 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/log4j-iostreams/pom.xml b/log4j-iostreams/pom.xml
index b69f6579ef..11e10ecd19 100644
--- a/log4j-iostreams/pom.xml
+++ b/log4j-iostreams/pom.xml
@@ -75,4 +75,22 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/log4j-jcl/pom.xml b/log4j-jcl/pom.xml
index 01421fa980..f37edfcf04 100644
--- a/log4j-jcl/pom.xml
+++ b/log4j-jcl/pom.xml
@@ -71,4 +71,22 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>
diff --git a/log4j-jpl/pom.xml b/log4j-jpl/pom.xml
index b23275460c..81f86bb471 100644
--- a/log4j-jpl/pom.xml
+++ b/log4j-jpl/pom.xml
@@ -65,6 +65,25 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
<profiles>
<profile>
<id>java8-tests</id>
diff --git a/log4j-slf4j-impl/pom.xml b/log4j-slf4j-impl/pom.xml
index 9e6c1f9637..984bf87212 100644
--- a/log4j-slf4j-impl/pom.xml
+++ b/log4j-slf4j-impl/pom.xml
@@ -122,6 +122,22 @@
</dependencies>
<build>
<plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -158,6 +174,7 @@
</execution>
</executions>
</plugin>
+
</plugins>
</build>
</project>
diff --git a/log4j-slf4j2-impl/pom.xml b/log4j-slf4j2-impl/pom.xml
index 0842858dd4..22e08bc53b 100644
--- a/log4j-slf4j2-impl/pom.xml
+++ b/log4j-slf4j2-impl/pom.xml
@@ -114,6 +114,22 @@
</dependencies>
<build>
<plugins>
+
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
@@ -151,6 +167,7 @@
</execution>
</executions>
</plugin>
+
</plugins>
</build>
</project>
diff --git a/log4j-to-jul/pom.xml b/log4j-to-jul/pom.xml
index f7bea6b387..0df4b41f25 100644
--- a/log4j-to-jul/pom.xml
+++ b/log4j-to-jul/pom.xml
@@ -64,4 +64,23 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
+
</project>
diff --git a/log4j-to-slf4j/pom.xml b/log4j-to-slf4j/pom.xml
index b45ab409ed..75566d2757 100644
--- a/log4j-to-slf4j/pom.xml
+++ b/log4j-to-slf4j/pom.xml
@@ -97,4 +97,22 @@
</dependency>
</dependencies>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <!-- TODO: copy/paste from `logging-parent` to override this
module's parent -->
+ <annotationProcessorPaths combine.self="override">
+ <path>
+ <groupId>com.google.errorprone</groupId>
+ <artifactId>error_prone_core</artifactId>
+ <version>${error-prone.version}</version>
+ </path>
+ </annotationProcessorPaths>
+ </configuration>
+ </plugin>
+ </plugins>
+ </build>
</project>