Find the oldest matching dependency version in use

Apache 2.0

The oldest dependency version in use is the lowest dependency version in use in any source set of any subproject of a repository. It is possible that, for example, the main source set of a project uses Jackson 2.11, but a test source set uses Jackson 2.16. In this case, the oldest Jackson version in use is Jackson 2.11.

org.openrewrite.java.dependencies.search.FindMinimumDependencyVersion

Required

Group ID glob pattern used to match dependencies.

Artifact ID glob pattern used to match dependencies.

Optional

Match only dependencies with the specified version. Node-style version selectors may be used. All versions are searched by default.

mod run . --recipe=org.openrewrite.java.dependencies.search.FindMinimumDependencyVersion \ -P groupIdPattern=com.fasterxml.jackson.module \ -P artifactIdPattern='jackson-module-*'

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.