You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@bookkeeper.apache.org by ch...@apache.org on 2023/03/29 11:18:25 UTC
[bookkeeper] 01/03: Optimize log4j dependency in Bookkeeper (#3892)
This is an automated email from the ASF dual-hosted git repository.
chenhang pushed a commit to branch branch-4.16
in repository https://gitbox.apache.org/repos/asf/bookkeeper.git
commit 378eb07b5c85eb499307f107aafa065154e0137f
Author: ZhangJian He <sh...@gmail.com>
AuthorDate: Tue Mar 28 17:02:33 2023 +0800
Optimize log4j dependency in Bookkeeper (#3892)
(cherry picked from commit e440132802ad883216453642820e407db00baed3)
---
bookkeeper-server/pom.xml | 8 ++++++++
pom.xml | 8 --------
testtools/pom.xml | 11 +++++++++++
3 files changed, 19 insertions(+), 8 deletions(-)
diff --git a/bookkeeper-server/pom.xml b/bookkeeper-server/pom.xml
index a46b20c23d..ca7834ad41 100644
--- a/bookkeeper-server/pom.xml
+++ b/bookkeeper-server/pom.xml
@@ -153,6 +153,14 @@
<groupId>com.carrotsearch</groupId>
<artifactId>hppc</artifactId>
</dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+ </dependency>
<!-- testing dependencies -->
<dependency>
<groupId>org.apache.bookkeeper</groupId>
diff --git a/pom.xml b/pom.xml
index b154986600..89918cce5c 100644
--- a/pom.xml
+++ b/pom.xml
@@ -830,14 +830,6 @@
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
</dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-core</artifactId>
- </dependency>
- <dependency>
- <groupId>org.apache.logging.log4j</groupId>
- <artifactId>log4j-slf4j-impl</artifactId>
- </dependency>
<dependency>
<groupId>commons-configuration</groupId>
<artifactId>commons-configuration</artifactId>
diff --git a/testtools/pom.xml b/testtools/pom.xml
index 600a4830e4..5ad6441ebb 100644
--- a/testtools/pom.xml
+++ b/testtools/pom.xml
@@ -25,4 +25,15 @@
<artifactId>testtools</artifactId>
<name>Apache BookKeeper :: Test Tools</name>
<version>4.16.0-SNAPSHOT</version>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-core</artifactId>
+ </dependency>
+ <dependency>
+ <groupId>org.apache.logging.log4j</groupId>
+ <artifactId>log4j-slf4j-impl</artifactId>
+ </dependency>
+ </dependencies>
</project>