Skip to content

Commit 1002d2b

Browse files
authored
Also upgrade maven-surefire-report-plugin to 3.5.x (#1006)
* Also upgrade maven-surefire-report-plugin to 3.5.x Updated versions for maven-surefire-plugin and maven-failsafe-plugin to 3.5.x. * Update Maven plugin versions in UpgradeToJava25Test
1 parent cdbbeb6 commit 1002d2b

2 files changed

Lines changed: 5 additions & 5 deletions

File tree

src/main/resources/META-INF/rewrite/java-version-25.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -209,12 +209,12 @@ recipeList:
209209
addVersionIfMissing: true
210210
- org.openrewrite.maven.UpgradePluginVersion:
211211
groupId: org.apache.maven.plugins
212-
artifactId: maven-surefire-plugin
213-
newVersion: 3.1.x
212+
artifactId: maven-surefire-*
213+
newVersion: 3.5.x
214214
- org.openrewrite.maven.UpgradePluginVersion:
215215
groupId: org.apache.maven.plugins
216216
artifactId: maven-failsafe-plugin
217-
newVersion: 3.1.x
217+
newVersion: 3.5.x
218218
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
219219
groupId: net.bytebuddy
220220
artifactId: byte-buddy*

src/test/java/org/openrewrite/java/migrate/UpgradeToJava25Test.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,8 +105,8 @@ void upgradesMavenPluginsForJava25() {
105105
assertThat(actual)
106106
.contains("<maven.compiler.release>25</maven.compiler.release>")
107107
.containsPattern("maven-compiler-plugin</artifactId>\\s*<version>3\\.15\\.")
108-
.containsPattern("maven-surefire-plugin</artifactId>\\s*<version>3\\.1\\.")
109-
.containsPattern("maven-failsafe-plugin</artifactId>\\s*<version>3\\.1\\.")
108+
.containsPattern("maven-surefire-plugin</artifactId>\\s*<version>3\\.5\\.")
109+
.containsPattern("maven-failsafe-plugin</artifactId>\\s*<version>3\\.5\\.")
110110
.actual())
111111
)
112112
);

0 commit comments

Comments
 (0)