Skip to content

KNET-18079: Upgrade log4j1 to log4j2#561

Merged
Shubhankar Ranade (shubh-ranade) merged 5 commits intomasterfrom
log4j2-migration
Apr 4, 2025
Merged

KNET-18079: Upgrade log4j1 to log4j2#561
Shubhankar Ranade (shubh-ranade) merged 5 commits intomasterfrom
log4j2-migration

Conversation

@shubh-ranade
Copy link
Copy Markdown
Member

@shubh-ranade Shubhankar Ranade (shubh-ranade) commented Apr 2, 2025

Copilot AI review requested due to automatic review settings April 2, 2025 08:25
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

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

Copilot wasn't able to review any files in this pull request.

Files not reviewed (3)
  • core/pom.xml: Language not supported
  • examples/pom.xml: Language not supported
  • fips-tests/pom.xml: Language not supported

Comment thread examples/src/main/resources/log4j2.xml Outdated
Comment thread core/pom.xml
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-reload4j</artifactId>
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.

is this already declared in top level pom of this project?

Copy link
Copy Markdown
Member Author

@shubh-ranade Shubhankar Ranade (shubh-ranade) Apr 2, 2025

Choose a reason for hiding this comment

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

I don't think this is declared in top level pom. Should I add it there? Maybe all modules don't need this which could be why it wasn't declared in top level pom.

@trnguyencflt
Copy link
Copy Markdown
Member

Truc Nguyen (trnguyencflt) commented Apr 2, 2025

Shubhankar Ranade (@shubh-ranade) could you please verify the build locally if there is no reload4j in the classpath?

@shubh-ranade
Copy link
Copy Markdown
Member Author

Verified that there is no reload4j dependency

❯ mvn dependency:build-classpath -DincludeArtifactIds=slf4j-reload4j
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.confluent:rest-utils-fips-tests:jar:8.0.0-0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.bouncycastle:bcpkix-fips:jar -> version ${bouncycastle.bcpkix-fips.version} vs 1.0.7 @ line 93, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] rest-utils-parent                                                  [pom]
[INFO] rest-utils                                                         [jar]
[INFO] rest-utils-test                                                    [jar]
[INFO] rest-utils-example                                                 [jar]
[INFO] rest-utils-package                                                 [pom]
[INFO] rest-utils-fips-tests                                              [jar]
[INFO]
[INFO] -------------------< io.confluent:rest-utils-parent >-------------------
[INFO] Building rest-utils-parent 8.0.0-0                                 [1/6]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils-parent ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO]
[INFO] ----------------------< io.confluent:rest-utils >-----------------------
[INFO] Building rest-utils 8.0.0-0                                        [2/6]
[INFO]   from core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO]
[INFO] --------------------< io.confluent:rest-utils-test >--------------------
[INFO] Building rest-utils-test 8.0.0-0                                   [3/6]
[INFO]   from test/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils-test ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO]
[INFO] ------------------< io.confluent:rest-utils-examples >------------------
[INFO] Building rest-utils-example 8.0.0-0                                [4/6]
[INFO]   from examples/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils-examples ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO]
[INFO] ------------------< io.confluent:rest-utils-package >-------------------
[INFO] Building rest-utils-package 8.0.0-0                                [5/6]
[INFO]   from package/pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils-package ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO]
[INFO] -----------------< io.confluent:rest-utils-fips-tests >-----------------
[INFO] Building rest-utils-fips-tests 8.0.0-0                             [6/6]
[INFO]   from fips-tests/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:build-classpath (default-cli) @ rest-utils-fips-tests ---
[INFO] No dependencies found.
[INFO] Dependencies classpath:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for rest-utils-parent 8.0.0-0:
[INFO]
[INFO] rest-utils-parent .................................. SUCCESS [  0.437 s]
[INFO] rest-utils ......................................... SUCCESS [  0.332 s]
[INFO] rest-utils-test .................................... SUCCESS [  0.030 s]
[INFO] rest-utils-example ................................. SUCCESS [  0.016 s]
[INFO] rest-utils-package ................................. SUCCESS [  0.012 s]
[INFO] rest-utils-fips-tests .............................. SUCCESS [  0.019 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.263 s
[INFO] Finished at: 2025-04-02T18:20:37+05:30
[INFO] ------------------------------------------------------------------------
❯ mvn dependency:tree -Dincludes=org.slf4j:slf4j-reload4j
[INFO] Scanning for projects...
[WARNING]
[WARNING] Some problems were encountered while building the effective model for io.confluent:rest-utils-fips-tests:jar:8.0.0-0
[WARNING] 'dependencies.dependency.(groupId:artifactId:type:classifier)' must be unique: org.bouncycastle:bcpkix-fips:jar -> version ${bouncycastle.bcpkix-fips.version} vs 1.0.7 @ line 93, column 21
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Detecting the operating system and CPU architecture
[INFO] ------------------------------------------------------------------------
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] rest-utils-parent                                                  [pom]
[INFO] rest-utils                                                         [jar]
[INFO] rest-utils-test                                                    [jar]
[INFO] rest-utils-example                                                 [jar]
[INFO] rest-utils-package                                                 [pom]
[INFO] rest-utils-fips-tests                                              [jar]
[INFO]
[INFO] -------------------< io.confluent:rest-utils-parent >-------------------
[INFO] Building rest-utils-parent 8.0.0-0                                 [1/6]
[INFO]   from pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils-parent ---
[INFO]
[INFO] ----------------------< io.confluent:rest-utils >-----------------------
[INFO] Building rest-utils 8.0.0-0                                        [2/6]
[INFO]   from core/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils ---
[INFO]
[INFO] --------------------< io.confluent:rest-utils-test >--------------------
[INFO] Building rest-utils-test 8.0.0-0                                   [3/6]
[INFO]   from test/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils-test ---
[INFO]
[INFO] ------------------< io.confluent:rest-utils-examples >------------------
[INFO] Building rest-utils-example 8.0.0-0                                [4/6]
[INFO]   from examples/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils-examples ---
[INFO]
[INFO] ------------------< io.confluent:rest-utils-package >-------------------
[INFO] Building rest-utils-package 8.0.0-0                                [5/6]
[INFO]   from package/pom.xml
[INFO] --------------------------------[ pom ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils-package ---
[INFO]
[INFO] -----------------< io.confluent:rest-utils-fips-tests >-----------------
[INFO] Building rest-utils-fips-tests 8.0.0-0                             [6/6]
[INFO]   from fips-tests/pom.xml
[INFO] --------------------------------[ jar ]---------------------------------
[INFO]
[INFO] --- dependency:3.3.0:tree (default-cli) @ rest-utils-fips-tests ---
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for rest-utils-parent 8.0.0-0:
[INFO]
[INFO] rest-utils-parent .................................. SUCCESS [  0.427 s]
[INFO] rest-utils ......................................... SUCCESS [  0.310 s]
[INFO] rest-utils-test .................................... SUCCESS [  0.024 s]
[INFO] rest-utils-example ................................. SUCCESS [  0.010 s]
[INFO] rest-utils-package ................................. SUCCESS [  0.008 s]
[INFO] rest-utils-fips-tests .............................. SUCCESS [  0.013 s]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD SUCCESS
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  1.196 s
[INFO] Finished at: 2025-04-02T18:14:02+05:30
[INFO] ------------------------------------------------------------------------

@shubh-ranade Shubhankar Ranade (shubh-ranade) merged commit 4ef2b77 into master Apr 4, 2025
3 of 5 checks passed
@shubh-ranade Shubhankar Ranade (shubh-ranade) deleted the log4j2-migration branch April 4, 2025 09:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants