Remove test Java parsers provided by the build plugin

MSAL

The org.openrewrite.build.recipe-library plugin runs tests on Java 25 and adds rewrite-java-25 to the test runtime classpath, so JavaParser.fromJavaVersion() never falls back to the rewrite-java-17 or rewrite-java-21 parsers there.

org.openrewrite.java.recipes.RemoveTestJavaParsersProvidedByBuildPlugin
mod run . --recipe=org.openrewrite.java.recipes.RemoveTestJavaParsersProvidedByBuildPlugin

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