diff --git a/src/main/resources/META-INF/rewrite/junit5.yml b/src/main/resources/META-INF/rewrite/junit5.yml index 942a17c5b..c89943a4e 100755 --- a/src/main/resources/META-INF/rewrite/junit5.yml +++ b/src/main/resources/META-INF/rewrite/junit5.yml @@ -151,6 +151,13 @@ recipeList: artifactId: "*" newVersion: 3.x overrideManagedVersion: false + - org.openrewrite.java.dependencies.AddDependency: + groupId: org.mockito + artifactId: mockito-junit-jupiter + version: 3.x + onlyIfUsing: org.mockito..* + acceptTransitive: true + scope: test - org.openrewrite.maven.UpgradePluginVersion: groupId: org.apache.maven.plugins artifactId: maven-surefire-plugin