Skip to content

Commit 4a91085

Browse files
authored
Upgrade maven-pmd-plugin as part of the Java 17 migration (#1208)
Move the `maven-pmd-plugin` upgrade from `UpgradePluginsForJava25` to `UpgradePluginsForJava17`, so that anyone landing on Java 17 or later picks up PMD parser and analyzer fixes. `UpgradeToJava25` chains through `UpgradeToJava21` and `UpgradeToJava17`, so the Java 25 floor of 3.28.x remains covered by the floating `3.x` version.
1 parent 1cb4f8d commit 4a91085

5 files changed

Lines changed: 39 additions & 14 deletions

File tree

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,10 @@ recipeList:
110110
artifactId: maven-compiler-plugin
111111
newVersion: 3.x
112112
addVersionIfMissing: true
113+
- org.openrewrite.maven.UpgradePluginVersion:
114+
groupId: org.apache.maven.plugins
115+
artifactId: maven-pmd-plugin
116+
newVersion: 3.x
113117
- org.openrewrite.maven.UpgradePluginVersion:
114118
groupId: org.apache.maven.plugins
115119
artifactId: maven-war-plugin

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

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -216,10 +216,6 @@ recipeList:
216216
groupId: org.apache.maven.plugins
217217
artifactId: maven-failsafe-plugin
218218
newVersion: 3.5.x
219-
- org.openrewrite.maven.UpgradePluginVersion:
220-
groupId: org.apache.maven.plugins
221-
artifactId: maven-pmd-plugin
222-
newVersion: 3.28.x
223219
- org.openrewrite.java.dependencies.UpgradeDependencyVersion:
224220
groupId: net.bytebuddy
225221
artifactId: byte-buddy*

0 commit comments

Comments
 (0)