codegenomeproject
Search
MarketplaceModules
PackagesCLIMCP
Sign in
  1. Marketplace
  2. Java
  3. Micronaut
  4. Migrate from Micronaut 3.x to 4.x

Migrate from Micronaut 3.x to 4.x

Apache 2.0

This recipe will apply changes required for migrating from Micronaut 3 to Micronaut 4.

org.openrewrite.java.micronaut.Micronaut3to4Migration
mod run . --recipe=org.openrewrite.java.micronaut.Micronaut3to4Migration

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.

Recipe
  1. Upgrade Java version 17
  2. Update Gradle wrapper 8.1.x-bin
  3. Update the Micronaut version to 4.x
  4. Update to Micronaut 4.x platform BOM
  5. Add Micronaut build plugins to 4.x
  6. Add snakeyaml dependency if needed
  7. Update jakarta annotations dependency
  8. Migrate deprecated javax.persistence packages to jakarta.persistence
  9. Update to Micronaut Validation 4.x
  10. Update to Micronaut Email 2.x
  11. Update the Micronaut Websocket support
  12. Update the Micronaut Session support
  13. Update the Micronaut Retry support
  14. Update the Micronaut Security library
  15. Update the Micronaut Data library
  16. Remove withJansi Logback configuration
  17. Remove a Gradle or Maven dependency io.micronaut:micronaut-runtime
  18. Add HttpRequest type parameter for implemented interfaces
  19. Update the version of core annotation processors
  20. Add micronaut-test-resources-client if needed
© Moderne, 2026
Recipe indexPrivacyTerms