Replace disable(MapperFeature.AUTO_DETECT_*) and visibility(..) with changeDefaultVisibility() for Jackson 3

Apache 2.0

In Jackson 3, auto-detection MapperFeature flags like AUTO_DETECT_FIELDS are removed. Use changeDefaultVisibility() on the builder instead. The builder's visibility(PropertyAccessor, Visibility) was removed as well, and becomes changeDefaultVisibility(vc -> vc.withVisibility(..)).

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

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