Migrate from Micronaut 3.x to 4.x
Apache 2.0This recipe will apply changes required for migrating from Micronaut 3 to Micronaut 4.
org. openrewrite. java. micronaut. Micronaut3to4Migrationmod run . --recipe= org. openrewrite. java. micronaut. Micronaut3to4MigrationInstall 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.
- Upgrade Java version
17 - Update Gradle wrapper 8.1.x-bin
- Update the Micronaut version to 4.x
- Update to Micronaut 4.x platform BOM
- Add Micronaut build plugins to 4.x
- Add
snakeyamldependency if needed - Update jakarta annotations dependency
- Migrate deprecated
javax.persistencepackages tojakarta.persistence - Update to Micronaut Validation 4.x
- Update to Micronaut Email 2.x
- Update the Micronaut Websocket support
- Update the Micronaut Session support
- Update the Micronaut Retry support
- Update the Micronaut Security library
- Update the Micronaut Data library
- Remove withJansi Logback configuration
- Remove a Gradle or Maven dependency
io.micronaut:micronaut-runtime - Add
HttpRequesttype parameter for implemented interfaces - Update the version of core annotation processors
- Add
micronaut-test-resources-clientif needed