Migrate to Java 21

Apache 2.0

This recipe will apply changes commonly needed when migrating to Java 21. Build files will be updated to use Java 21 as the target/source and plugins will be also be upgraded to versions that are compatible with Java 21.

io.quarkus.updates.core.quarkus40.UpgradeToJava21
mod run . --recipe=io.quarkus.updates.core.quarkus40.UpgradeToJava21

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

Recipe list

It runs these recipes, in this order.

  1. Upgrade actions/setup-java java-version 21