Exclude JUnit 4, unless a test library requires it

MSAL

Excludes JUnit 4 unless Testcontainers 1.x, Guava testlib or JUnit Jupiter migrationsupport requires it at runtime, even when tests use JUnit Jupiter.

org.openrewrite.java.testing.junit5.ExcludeJUnit4UnlessUsingTestcontainers
mod run . --recipe=org.openrewrite.java.testing.junit5.ExcludeJUnit4UnlessUsingTestcontainers

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. Exclude Maven dependency junit:junit