Migrate classes from Jackson Codehaus (legacy) to Jackson FasterXML
Apache 2.0In Jackson 2, the package and dependency coordinates moved from Codehaus to FasterXML.
org. openrewrite. java. jackson. CodehausClassesToFasterXMLmod run . --recipe= org. openrewrite. java. jackson. CodehausClassesToFasterXMLInstall 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.
- Migrate to Jackson
@JsonInclude - Migrate serialization annotation processor
- Remove Codehaus Jackson annotations if doubly annotated
- Change type
org.codehaus.jackson.map.JsonSerializertocom.fasterxml.jackson.databind.JsonSerializer - Change type
JsonSerialize$InclusiontoJsonInclude$Include - Change type
org.codehaus.jackson.map.annotate.JsonSerialize$Typingtocom.fasterxml.jackson.databind.annotation.JsonSerialize$Typing - Change type
org.codehaus.jackson.map.annotate.JsonSerializetocom.fasterxml.jackson.databind.annotation.JsonSerialize - Change type
PairtoAnnotationIntrospectorPair - Change type
org.codehaus.jackson.map.AnnotationIntrospectortocom.fasterxml.jackson.databind.AnnotationIntrospector - Change type
org.codehaus.jackson.xc.JaxbAnnotationIntrospectortocom.fasterxml.jackson.module.jaxb.JaxbAnnotationIntrospector - Change type
org.codehaus.jackson.map.introspect.JacksonAnnotationIntrospectortocom.fasterxml.jackson.databind.introspect.JacksonAnnotationIntrospector - Change type
org.codehaus.jackson.map.introspect.NopAnnotationIntrospectortocom.fasterxml.jackson.databind.introspect.NopAnnotationIntrospector - Change type
org.codehaus.jackson.map.ObjectMappertocom.fasterxml.jackson.databind.ObjectMapper - Change type
SerializationConfig$FeaturetoSerializationFeature - Change type
DeserializationConfig$FeaturetoDeserializationFeature - Rename package name
org.codehaus.jackson.annotatetocom.fasterxml.jackson.annotation - Rename package name
org.codehaus.jackson.map.exttocom.fasterxml.jackson.databind.ext - Rename package name
org.codehaus.jackson.map.sertocom.fasterxml.jackson.databind.ser