Adopt Jackson 3
ProprietaryAdopt Jackson 3 which is supported by Spring Boot 4 and Jackson 2 support is deprecated.
io. moderne. java. spring. boot4. AdoptJackson3mod run . --recipe= io. moderne. java. spring. boot4. AdoptJackson3Install 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.
- Add Gradle or Maven dependency
org.springframework.boot:spring-boot-jackson:4.x - Replace
setObjectMapperwith constructor injection - Pass a
JsonMappertoJacksonJsonHttpMessageConverter - Change type
MappingJackson2HttpMessageConvertertoJacksonJsonHttpMessageConverter - Fold
Jackson2JsonRedisSerializer#setObjectMapperinto the constructor - Replace
GenericJackson2JsonRedisSerializerconstructors without anObjectMapperwith the builder - Add comment to method invocations
- Add comment to method invocations
- Add comment to method invocations
- Change type
Jackson2JsonRedisSerializertoJacksonJsonRedisSerializer - Change type
GenericJackson2JsonRedisSerializertoGenericJacksonJsonRedisSerializer - Change type
JsonComponenttoJacksonComponent - Change type
JsonComponentModuletoJacksonComponentModule - Change type
JsonMixintoJacksonMixin - Change type
JsonMixinModuletoJacksonMixinModule - Change type
JsonMixinModuleEntriestoJacksonMixinModuleEntries - Change type
JsonObjectSerializertoObjectValueSerializer - Change type
JsonObjectDeserializertoObjectValueDeserializer