Migrate to OkHttp 5.x

MSAL

This recipe will apply changes commonly needed when migrating to OkHttp 5.x.

org.openrewrite.okhttp.UpgradeOkHttp5
mod run . --recipe=org.openrewrite.okhttp.UpgradeOkHttp5

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. Migrate to OkHttp 4.x
  2. Migrate OkHttp dependencies to 5.x
  3. Reorder the arguments of RequestBody.create()