Skip to content

Commit

Permalink
Upgrade PMD to 7.4.0 (#468)
Browse files Browse the repository at this point in the history
Upgrades PMD from 7.0.0 to 7.4.0

For release notes, see:

* https://docs.pmd-code.org/pmd-doc-7.4.0/pmd_release_notes.html
* https://docs.pmd-code.org/pmd-doc-7.4.0/pmd_release_notes_old.html

Signed-off-by: Wouter Born <github@maindrain.net>
  • Loading branch information
wborn committed Aug 11, 2024
1 parent 272040b commit 2dfdbed
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 9 deletions.
2 changes: 1 addition & 1 deletion docs/maven-plugin.md
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ Parameters:
| ------ | ------| -------- |
| **pmdRuleset** | String | Relative path of the XML configuration to use. If not set the default ruleset file will be used |
| **pmdFilter** | String | Relative path of a suppression.properties file that lists classes and rules to be excluded from failures. If not set no classes and no rules will be excluded |
| **maven.pmd.version** | String | The version of the maven-pmd-plugin that will be used (Default value is **3.21.2**)|
| **maven.pmd.version** | String | The version of the maven-pmd-plugin that will be used (Default value is **3.24.0**)|
| **pmdPlugins** | List<Dependency> | A list with artifacts that contain additional checks for PMD |

### sat-plugin:checkstyle
Expand Down
7 changes: 1 addition & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
<commons.lang3.version>3.12.0</commons.lang3.version>
<mockito.version>4.10.0</mockito.version>
<maven.resources.version>3.3.0</maven.resources.version>
<pmd.version>7.0.0</pmd.version>
<pmd.version>7.4.0</pmd.version>
<checkstyle.version>10.14.0</checkstyle.version>
<spotbugs.version>4.8.6</spotbugs.version>
<maven.core.version>3.6.0</maven.core.version>
Expand All @@ -93,11 +93,6 @@
</properties>

<dependencies>
<dependency>
<groupId>net.sourceforge.pmd</groupId>
<artifactId>pmd-compat6</artifactId>
<version>7.0.0</version>
</dependency>
<dependency>
<groupId>javax.xml.bind</groupId>
<artifactId>jaxb-api</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ public class PmdChecker extends AbstractChecker {
/**
* The version of the maven-pmd-plugin that will be used
*/
@Parameter(property = "maven.pmd.version", defaultValue = "3.21.2")
@Parameter(property = "maven.pmd.version", defaultValue = "3.24.0")
private String mavenPmdVersion;

/**
Expand All @@ -69,7 +69,7 @@ public class PmdChecker extends AbstractChecker {
@Parameter
private List<Dependency> pmdPlugins = new ArrayList<>();

private static final String PMD_VERSION = "7.0.0";
private static final String PMD_VERSION = "7.4.0";
/**
* Location of the properties files that contains configuration options for the maven-pmd-plugin
*/
Expand Down

0 comments on commit 2dfdbed

Please sign in to comment.