Migrate from Micronaut 4.x to 5.x
Apache 2.0This recipe will apply changes required for migrating from Micronaut 4 to Micronaut 5. Micronaut 5 raises the Java baseline to 25 and ships a number of artifact/plugin renames; see the upstream migration guide for the full list of breaking changes.
org. openrewrite. java. micronaut. Micronaut4to5Migrationmod run . --recipe= org. openrewrite. java. micronaut. Micronaut4to5MigrationInstall 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.
- Migrate from Micronaut 3.x to 4.x
- Upgrade Java version
25 - Update Gradle wrapper 9.5.x-bin
- Upgrade
micronaut.versionMaven property5.x - Upgrade gradle.properties Micronaut version
5.x - Change Maven parent
null:null:5.x - Update Micronaut Gradle build plugins to 5.x
- Change Gradle or Maven dependency
io.micronaut.security:micronaut-security-annotations - Change Gradle or Maven dependency
io.micronaut.eclipsestore:micronaut-eclipsestore-annotations - Change type
TurboViewtoTurboStreamView - Add Gradle or Maven dependency
io.micronaut.views:micronaut-views-turbo - Change Gradle or Maven dependency
org.testcontainers:junit-jupiter - Migrates from Jackson 2.x to Jackson 3.x
- Migrate to JSpecify