Skip to content

[ISSUE 3891] Optimize log4j dependency in Bookkeeper#3892

Merged
eolivelli merged 1 commit into
apache:masterfrom
hezhangjian:optimize-log4j
Mar 28, 2023
Merged

[ISSUE 3891] Optimize log4j dependency in Bookkeeper#3892
eolivelli merged 1 commit into
apache:masterfrom
hezhangjian:optimize-log4j

Conversation

@hezhangjian

Copy link
Copy Markdown
Member

Motivation

The current parent pom in Bookkeeper includes log4j-core and slf4j-log4j-impl dependencies, which are being transitively passed down to many modules. This has resulted in an unnecessary increase in the number of dependencies for these modules.

Changes

  • move the log4j-impl and log4j-core to testtools
  • declare log4j-impl and log4j-core dependency in bookkeeper server module.

Fix #3891

Also see

@hezhangjian

hezhangjian commented Mar 27, 2023

Copy link
Copy Markdown
Member Author

I verified the module doesn't contains log4j dependency. And the server package contains it.
Thanks for @tisonkun nice catch.

@hangc0276 hangc0276 added dependencies Pull requests that update a dependency file release/4.15.5 labels Mar 28, 2023
@hangc0276 hangc0276 added this to the 4.16.0 milestone Mar 28, 2023
@hangc0276

Copy link
Copy Markdown
Contributor

I will trigger a new RC for 4.16.0 to include this PR.

@tisonkun

Copy link
Copy Markdown
Member

Thanks for taking care of this!

@horizonzy horizonzy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli eolivelli left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@eolivelli eolivelli merged commit e440132 into apache:master Mar 28, 2023
@hezhangjian hezhangjian deleted the optimize-log4j branch March 28, 2023 09:04
hangc0276 pushed a commit that referenced this pull request Mar 29, 2023
zymap pushed a commit that referenced this pull request Dec 6, 2023
Ghatage pushed a commit to sijie/bookkeeper that referenced this pull request Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

cherry-picked/branch-4.15 dependencies Pull requests that update a dependency file release/4.15.5

Projects

None yet

Development

Successfully merging this pull request may close these issues.

BookKeeper's parent pom.xml should not pull log4j implementations

6 participants