From 70caf9d162158507fd29c8f4885af08fa174faa9 Mon Sep 17 00:00:00 2001 From: Sam Snyder Date: Mon, 12 Feb 2024 09:33:19 -0800 Subject: [PATCH] Flesh out dependency upgrades --- .../resources/META-INF/rewrite/junit5.yml | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/src/main/resources/META-INF/rewrite/junit5.yml b/src/main/resources/META-INF/rewrite/junit5.yml index 855c456c3..942a17c5b 100755 --- a/src/main/resources/META-INF/rewrite/junit5.yml +++ b/src/main/resources/META-INF/rewrite/junit5.yml @@ -117,14 +117,40 @@ recipeList: groupId: org.junit.jupiter artifactId: junit-jupiter version: 5.x + onlyIfUsing: org.junit.Test + scope: test + - org.openrewrite.java.dependencies.AddDependency: + groupId: org.junit.jupiter + artifactId: junit-jupiter + version: 5.x + onlyIfUsing: org.junit.jupiter.api.Test + acceptTransitive: true + scope: test + - org.openrewrite.java.dependencies.AddDependency: + groupId: org.junit.jupiter + artifactId: junit-jupiter-api + version: 5.x + onlyIfUsing: org.junit.Test + scope: test + - org.openrewrite.java.dependencies.AddDependency: + groupId: org.junit.jupiter + artifactId: junit-jupiter-api + version: 5.x onlyIfUsing: org.junit.jupiter.api.Test acceptTransitive: true + scope: test - org.openrewrite.java.dependencies.AddDependency: groupId: org.junit.jupiter artifactId: junit-jupiter-params version: 5.x onlyIfUsing: org.junit.jupiter.params.ParameterizedTest acceptTransitive: true + scope: test + - org.openrewrite.java.dependencies.UpgradeDependencyVersion: + groupId: org.mockito + artifactId: "*" + newVersion: 3.x + overrideManagedVersion: false - org.openrewrite.maven.UpgradePluginVersion: groupId: org.apache.maven.plugins artifactId: maven-surefire-plugin @@ -298,4 +324,4 @@ recipeList: newGroupId: org.xmlunit newArtifactId: xmlunit-legacy newVersion: 2.x ---- \ No newline at end of file +---