Migrate to MockWebServer3 with JUnit 5

MSAL

Migrate from the legacy mockwebserver artifact to mockwebserver3-junit5 with JUnit 5 integration.

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

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 Gradle or Maven dependency com.squareup.okhttp3:mockwebserver
  2. Rename package name okhttp3.mockwebserver to mockwebserver3.junit5