Skip to content

Commit cb41db9

Browse files
committed
Use glob expression when updating mockito dependencies.
1 parent 59a3077 commit cb41db9

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main/resources/META-INF/rewrite/mockito.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ recipeList:
2525
- org.openrewrite.java.testing.mockito.Mockito1to3Migration
2626
- org.openrewrite.maven.UpgradeDependencyVersion:
2727
groupId: org.mockito
28-
artifactId: mockito-junit-jupiter
28+
artifactId: "*"
2929
newVersion: 4.x
3030
---
3131
type: specs.openrewrite.org/v1beta/recipe
@@ -97,10 +97,14 @@ recipeList:
9797
newFullyQualifiedTypeName: org.mockito.junit.MockitoJUnitRunner
9898
- org.openrewrite.java.testing.mockito.CleanupMockitoImports
9999
- org.openrewrite.java.testing.mockito.MockUtilsToStatic
100+
- org.openrewrite.java.testing.junit5.MockitoJUnitToMockitoExtension
100101
- org.openrewrite.maven.AddDependency:
101102
groupId: org.mockito
102103
artifactId: mockito-junit-jupiter
103104
version: 3.x
104105
onlyIfUsing: org.mockito.junit.jupiter.MockitoExtension
105-
- org.openrewrite.java.testing.junit5.MockitoJUnitToMockitoExtension
106+
- org.openrewrite.maven.UpgradeDependencyVersion:
107+
groupId: org.mockito
108+
artifactId: "*"
109+
newVersion: 3.x
106110

0 commit comments

Comments
 (0)