ppkarwasz opened a new pull request, #455: URL: https://github.com/apache/logging-log4j-samples/pull/455
The integration tests force `log4j.version` to the Log4j release under test, which can be lower than the version required by third-party dependencies. For example, `kubernetes-log4j` 8.0.0 requires `log4j-api` 2.26.1, so testing a 2.25.x release fails the `requireUpperBoundDeps` enforcer rule (see [this run](https://github.com/apache/logging-log4j-samples/actions/runs/44108289200/job/134126590431)). This PR excludes the Log4j artifacts used in the reactor from the rule, while keeping it active for all other dependencies: - Wildcards are not supported by `maven-enforcer-plugin` 3.5.0, so the artifacts are listed explicitly (taken from `dependency:tree` over the reactor). - `log4j-samples-graalvm` inherits directly from `logging-parent`, so it is not affected. This is an alternative to #436: excluding `log4j-api` and `log4j-core` from `kubernetes-log4j` would misrepresent its dependencies and would need to be repeated for every dependency that requires a newer Log4j. ## Testing `./mvnw validate` passes with both `-Dlog4j.version=2.25.5` (fails without this change) and `-Dlog4j.version=2.26.1`. 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
