Skip to content

Commit

Permalink
Update Maven surefire plugin to a version which requires no additiona…
Browse files Browse the repository at this point in the history
…l configuration to run JUnit 5 tests.

Remove redundant/unnecessary AddDependency operations.
  • Loading branch information
sambsnyd committed Mar 14, 2024
1 parent 8bdf602 commit 1433a6d
Showing 1 changed file with 3 additions and 23 deletions.
26 changes: 3 additions & 23 deletions src/main/resources/META-INF/rewrite/junit5.yml
Original file line number Diff line number Diff line change
Expand Up @@ -117,27 +117,7 @@ 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
onlyIfUsing: org.junit..*
scope: test
- org.openrewrite.java.dependencies.AddDependency:
groupId: org.junit.jupiter
Expand All @@ -161,11 +141,11 @@ recipeList:
- org.openrewrite.maven.UpgradePluginVersion:
groupId: org.apache.maven.plugins
artifactId: maven-surefire-plugin
newVersion: 2.22.x
newVersion: 3.1.x
- org.openrewrite.maven.UpgradePluginVersion:
groupId: org.apache.maven.plugins
artifactId: maven-failsafe-plugin
newVersion: 2.22.x
newVersion: 3.1.x

---
type: specs.openrewrite.org/v1beta/recipe
Expand Down

0 comments on commit 1433a6d

Please sign in to comment.