Remove registrations of modules built-in to Jackson 3

Apache 2.0

In Jackson 3, ParameterNamesModule, Jdk8Module, and JavaTimeModule are built into jackson-databind and no longer need to be registered manually. This recipe removes ObjectMapper.registerModule() and MapperBuilder.addModule() calls for these modules. A ParameterNamesModule created with JsonCreator.Mode.PROPERTIES or DELEGATING is replaced with the matching ConstructorDetector instead, as that mode is not the Jackson 3 default.

org.openrewrite.java.jackson.RemoveBuiltInModuleRegistrations
mod run . --recipe=org.openrewrite.java.jackson.RemoveBuiltInModuleRegistrations

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.