Find minimum JUnit version
Apache 2.0Finds the minimum version of JUnit used by each module, looking at junit:junit for JUnit 4 and org.junit.jupiter:junit-jupiter-api for JUnit 5 and 6. If a module uses several JUnit major versions, the lowest one is reported.
If a minimumVersion is provided, the recipe only reports modules for which that is the minimum JUnit major version.
For example: if the minimumVersion is 4, and a module has JUnit 4.12 and JUnit 5.7, the recipe will report JUnit 4.12. If a module has only JUnit 5.7, the recipe will not report it.
Another example: if the minimumVersion is 5, and a module has JUnit 4.12 and JUnit 5.7, the recipe will not report it.
org. openrewrite. java. dependencies. search. FindMinimumJUnitVersionOptional
Only report modules whose minimum JUnit major version is the provided version. If a module uses several JUnit major versions, the lowest one is its minimum version.
mod run . --recipe= org. openrewrite. java. dependencies. search. FindMinimumJUnitVersionInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.