Gradle Test use JUnit Jupiter
MSALBy 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. GradleUseJunitJupitermod run . --recipe= org. openrewrite. java. testing. junit5. GradleUseJunitJupiterInstall it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.