Find which Java version is in use

MSAL

A diagnostic for studying the distribution of Java language version levels (both source and target compatibility across files and source sets).

org.openrewrite.java.migrate.search.AboutJavaVersion

Optional

Only mark the Java version when this type is in use.

mod run . --recipe=org.openrewrite.java.migrate.search.AboutJavaVersion

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