Pin Log4j 2.x modules that are no longer released
MSALSets the version of log4j-flume-ng, log4j-jmx-gui, log4j-kubernetes, log4j-liquibase, log4j-mongodb2,
log4j-mongodb3, log4j-nosql and log4j-osgi to their last release in Maven poms, where it comes from a property.
A version property they share with the rest of Log4j could otherwise not be raised past that release.
A version that refers to the project's own, as in Log4j's own build, is left alone, and so are modules on Log4j 3.x:
those that resolve log4j-plugins, and poms with a property named for Log4j whose value starts with 3..
Meant to run inside UpgradeLog4J2DependencyVersion, which raises the rest of Log4j: on its own it leaves the pinned
modules ahead of the version property they shared.
org. openrewrite. java. logging. log4j. PinRemovedLog4j2ModuleVersionsmod run . --recipe= org. openrewrite. java. logging. log4j. PinRemovedLog4j2ModuleVersionsInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.