META-INF.rewrite.codehaus-to-fasterxml.yml Maven / Gradle / Ivy
#
# Copyright 2024 the original author or authors.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# https://www.jackson.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.jackson.CodehausToFasterXML
displayName: Migrate from Jackson Codehaus (legacy) to Jackson FasterXML
description: >-
In Jackson 2, the package and dependency coordinates moved from Codehaus to FasterXML.
recipeList:
- org.openrewrite.java.jackson.codehaus.RemoveDoublyAnnotatedCodehausAnnotations
- org.openrewrite.java.jackson.codehaus.TransferJsonSerializeArgumentsFromCodehausToFasterXML
- org.openrewrite.java.jackson.CodehausClassesToFasterXML
- org.openrewrite.java.jackson.codehaus.CodehausDependencyToFasterXML:
version: 2.x
---
type: specs.openrewrite.org/v1beta/recipe
name: org.openrewrite.java.jackson.CodehausClassesToFasterXML
displayName: Migrate classes from Jackson Codehaus (legacy) to Jackson FasterXML
description: >-
In Jackson 2, the package and dependency coordinates moved from Codehaus to FasterXML.
recipeList:
- org.openrewrite.java.jackson.codehaus.JsonIncludeAnnotation
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.JsonSerializer
newFullyQualifiedTypeName: com.fasterxml.jackson.databind.JsonSerializer
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.annotate.JsonSerialize$Inclusion
newFullyQualifiedTypeName: com.fasterxml.jackson.annotation.JsonInclude$Include
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.annotate.JsonSerialize
newFullyQualifiedTypeName: com.fasterxml.jackson.databind.annotation.JsonSerialize
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.ObjectMapper
newFullyQualifiedTypeName: com.fasterxml.jackson.databind.ObjectMapper
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.SerializationConfig$Feature
newFullyQualifiedTypeName: com.fasterxml.jackson.databind.SerializationFeature
- org.openrewrite.java.ChangeType:
oldFullyQualifiedTypeName: org.codehaus.jackson.map.DeserializationConfig$Feature
newFullyQualifiedTypeName: com.fasterxml.jackson.databind.DeserializationFeature
- org.openrewrite.java.ChangePackage:
oldPackageName: org.codehaus.jackson.annotate
newPackageName: com.fasterxml.jackson.annotation
recursive: true
- org.openrewrite.java.ChangePackage:
oldPackageName: org.codehaus.jackson.map.ext
newPackageName: com.fasterxml.jackson.databind.ext
recursive: true
- org.openrewrite.java.ChangePackage:
oldPackageName: org.codehaus.jackson.map.ser
newPackageName: com.fasterxml.jackson.databind.ser
recursive: true