Migrate jackson-datatype-hibernate6 to jackson-datatype-hibernate7
Recipe ID
io.moderne.hibernate.update70.MigrateJacksonDatatypeHibernate6To7Artifactio.moderne.recipe:rewrite-hibernateSwaps the jackson-datatype-hibernate6 dependency for jackson-datatype-hibernate7, along with the types it provides. Both the Jackson 2 (com.fasterxml.jackson.datatype) and Jackson 3 (tools.jackson.datatype) coordinates are handled, such that this recipe is applicable both before and after a migration to Jackson 3.
Composite recipeProprietary
Usage
This recipe has no required configuration options. You’ll need the Moderne CLI configured before running the command below.
mod run . --recipe io.moderne.hibernate.update70.MigrateJacksonDatatypeHibernate6To7If the recipe isn’t available locally, install it with:
mod config recipes jar install io.moderne.recipe:rewrite-hibernate:RELEASEDefinition
This recipe runs the following recipes in order.
- Upgrade Gradle or Maven dependency versions
org.openrewrite.java.dependencies.UpgradeDependencyVersion - Change Gradle or Maven dependency
com.fasterxml.jackson.datatype:jackson-datatype-hibernate6org.openrewrite.java.dependencies.ChangeDependency - Change Gradle or Maven dependency
tools.jackson.datatype:jackson-datatype-hibernate6org.openrewrite.java.dependencies.ChangeDependency - Change type
Hibernate6Module$FeaturetoHibernate7Module$Featureorg.openrewrite.java.ChangeType - Change type
Hibernate6ModuletoHibernate7Moduleorg.openrewrite.java.ChangeType - Change type
Hibernate6AnnotationIntrospectortoHibernate7AnnotationIntrospectororg.openrewrite.java.ChangeType - Change type
Hibernate6ProxySerializertoHibernate7ProxySerializerorg.openrewrite.java.ChangeType - Change type
Hibernate6SerializerModifiertoHibernate7SerializerModifierorg.openrewrite.java.ChangeType - Change type
Hibernate6SerializerstoHibernate7Serializersorg.openrewrite.java.ChangeType - Change type
Hibernate6VersiontoHibernate7Versionorg.openrewrite.java.ChangeType - Change type
com.fasterxml.jackson.datatype.hibernate6.PersistentCollectionSerializertocom.fasterxml.jackson.datatype.hibernate7.PersistentCollectionSerializerorg.openrewrite.java.ChangeType - Change type
com.fasterxml.jackson.datatype.hibernate6.PackageVersiontocom.fasterxml.jackson.datatype.hibernate7.PackageVersionorg.openrewrite.java.ChangeType - Rename package name
com.fasterxml.jackson.datatype.hibernate6tocom.fasterxml.jackson.datatype.hibernate7org.openrewrite.java.ChangePackage - Change type
Hibernate6Module$FeaturetoHibernate7Module$Featureorg.openrewrite.java.ChangeType - Change type
Hibernate6ModuletoHibernate7Moduleorg.openrewrite.java.ChangeType - Change type
Hibernate6AnnotationIntrospectortoHibernate7AnnotationIntrospectororg.openrewrite.java.ChangeType - Change type
Hibernate6ProxySerializertoHibernate7ProxySerializerorg.openrewrite.java.ChangeType - Change type
Hibernate6SerializerModifiertoHibernate7SerializerModifierorg.openrewrite.java.ChangeType - Change type
Hibernate6SerializerstoHibernate7Serializersorg.openrewrite.java.ChangeType - Change type
tools.jackson.datatype.hibernate6.PersistentCollectionSerializertotools.jackson.datatype.hibernate7.PersistentCollectionSerializerorg.openrewrite.java.ChangeType - Change type
tools.jackson.datatype.hibernate6.PackageVersiontotools.jackson.datatype.hibernate7.PackageVersionorg.openrewrite.java.ChangeType - Rename package name
tools.jackson.datatype.hibernate6totools.jackson.datatype.hibernate7org.openrewrite.java.ChangePackage
Data tables
Structured output this recipe can produce.
- Source files that had resultsSource files that were modified by the recipe run.
org.openrewrite.table.SourcesFileResults - Source files that had search resultsSearch results that were found during the recipe run.
org.openrewrite.table.SearchResults - Source files that errored on a recipeThe details of all errors produced by a recipe run.
org.openrewrite.table.SourcesFileErrors - Recipe performanceStatistics used in analyzing the performance of recipes.
org.openrewrite.table.RecipeRunStats