Migrates to ApacheHttpClient 4.5.x

MSAL

Migrate applications to the latest Apache HttpClient 4.5.x release. This recipe modifies application's build files, make changes to deprecated/preferred APIs, and migrates configuration settings that have changes between versions.

org.openrewrite.apache.httpclient4.UpgradeApacheHttpClient_4_5
mod run . --recipe=org.openrewrite.apache.httpclient4.UpgradeApacheHttpClient_4_5

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. Upgrade Gradle or Maven dependency versions org.apache.httpcomponents:httpclient:4.5.x
  2. Maps deprecated classes from Apache HttpClient 4.5.x to suggested replacements