Migrate Spring @Transactional to Jakarta @Transactional

MSAL

Migrates Spring's @Transactional annotation to Jakarta's @Transactional. Maps propagation attributes to TxType and removes Spring-specific attributes.

org.openrewrite.quarkus.spring.MigrateSpringTransactional
mod run . --recipe=org.openrewrite.quarkus.spring.MigrateSpringTransactional

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. Add Gradle or Maven dependency io.quarkus:quarkus-narayana-jta:x
  2. Change type org.springframework.transaction.annotation.Transactional to jakarta.transaction.Transactional
  3. Change type Propagation to TxType