Migrate to testcontainers-java 2.x

MSAL

Change dependencies and types to migrate to testcontainers-java 2.x.

org.openrewrite.java.testing.testcontainers.Testcontainers2Migration
mod run . --recipe=org.openrewrite.java.testing.testcontainers.Testcontainers2Migration

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. Adopt @Container and add @Testcontainers
  2. Use explicit container images and versions
  3. Replace ContainerState.getContainerIpAddress() with getHost()
  4. Remove withLocalCompose(true)
  5. Change type DockerComposeContainer to ComposeContainer
  6. Rename Testcontainers dependencies
  7. Migrate removed LocalStackContainer members to Testcontainers 2.x
  8. Remove BrowserWebDriverContainer capabilities when an image is given
  9. Move container classes to their Testcontainers 2 packages