Skip to main content

Plan a Java version migration

org.openrewrite.java.migrate.search.PlanJavaMigration

Study the set of Java versions and associated tools in use across many repositories.

Recipe source

GitHub: PlanJavaMigration.java, Issue Tracker, Maven Central

This recipe is available under the Moderne Source Available License.

Usage

This recipe has no required configuration options. Users of Moderne can run it via the Moderne CLI.

You will need to have configured the Moderne CLI on your machine before you can run the following command.

shell
mod run . --recipe PlanJavaMigration

If the recipe is not available locally, then you can install it using:

mod config recipes jar install org.openrewrite.recipe:rewrite-migrate-java:3.28.0

See how this recipe works across multiple open-source repositories

Run this recipe on OSS repos at scale with the Moderne SaaS.

The community edition of the Moderne platform enables you to easily run recipes across thousands of open-source repositories.

Please contact Moderne for more information about safely running the recipes on your own codebase in a private SaaS.

Data Tables

Java version migration plan

org.openrewrite.java.migrate.table.JavaVersionMigrationPlan

A per-repository view of the current state of Java versions and associated build tools

Column NameDescription
Has JavaWhether this is a Java repository at all.
Source compatibilityThe source compatibility of the source file.
Major version source compatibilityThe major version.
Target compatibilityThe target compatibility or --release version of the source file.
Gradle versionThe version of Gradle in use, if any.
Has Gradle buildWhether a build.gradle file exists in the repository.
Maven versionThe version of Maven in use, if any.
Has Maven pomWhether a pom.xml file exists in the repository.