Gradle Test use JUnit Jupiter

MSAL

By default Gradle's Test tasks use JUnit 4. Gradle Test tasks must be configured with useJUnitPlatform() to run JUnit Jupiter tests. This recipe adds the useJUnitPlatform() method call to the Test task configuration in build.gradle and build.gradle.kts files.

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

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.