Update the Micronaut Data library

Apache 2.0

This recipe will make the necessary updates for using Micronaut Data with Micronaut Framework 4.

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

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. Remove XML tag /project/properties/micronaut.data.version
  2. Rename package name javax.transaction to jakarta.transaction
  3. Change type io.micronaut.data.jdbc.annotation.ColumnTransformer to io.micronaut.data.annotation.sql.ColumnTransformer
  4. Change type io.micronaut.data.jdbc.annotation.JoinColumn to io.micronaut.data.annotation.sql.JoinColumn
  5. Change type io.micronaut.data.jdbc.annotation.JoinColumns to io.micronaut.data.annotation.sql.JoinColumns
  6. Change type io.micronaut.data.jdbc.annotation.JoinTable to io.micronaut.data.annotation.sql.JoinTable
  7. Change type TransactionalAdvice to Transactional