Use RestClientBuilderCustomizer

MSAL

org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientBuilderCustomizer was deprecated in 2.3.

org.openrewrite.java.spring.boot2.MigrateRestClientBuilderCustomizerPackageName
mod run . --recipe=org.openrewrite.java.spring.boot2.MigrateRestClientBuilderCustomizerPackageName

Install 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.

  1. Change type org.springframework.boot.autoconfigure.elasticsearch.rest.RestClientBuilderCustomizer to org.springframework.boot.autoconfigure.elasticsearch.RestClientBuilderCustomizer