Add Hamcrest JUnit dependency

MSAL

Add Hamcrest JUnit dependency only if JUnit 4's assertThat or assumeThat is used.

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

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. Add Gradle or Maven dependency org.hamcrest:hamcrest-junit:2.x