Skip to content

Commit 2dfdbed

Browse files
authored
Upgrade PMD to 7.4.0 (#468)
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 <[email protected]>
1 parent 272040b commit 2dfdbed

File tree

3 files changed

+4
-9
lines changed

3 files changed

+4
-9
lines changed

docs/maven-plugin.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,7 @@ Parameters:
8787
| ------ | ------| -------- |
8888
| **pmdRuleset** | String | Relative path of the XML configuration to use. If not set the default ruleset file will be used |
8989
| **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 |
90-
| **maven.pmd.version** | String | The version of the maven-pmd-plugin that will be used (Default value is **3.21.2**)|
90+
| **maven.pmd.version** | String | The version of the maven-pmd-plugin that will be used (Default value is **3.24.0**)|
9191
| **pmdPlugins** | List<Dependency> | A list with artifacts that contain additional checks for PMD |
9292

9393
### sat-plugin:checkstyle

pom.xml

+1-6
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
<commons.lang3.version>3.12.0</commons.lang3.version>
6767
<mockito.version>4.10.0</mockito.version>
6868
<maven.resources.version>3.3.0</maven.resources.version>
69-
<pmd.version>7.0.0</pmd.version>
69+
<pmd.version>7.4.0</pmd.version>
7070
<checkstyle.version>10.14.0</checkstyle.version>
7171
<spotbugs.version>4.8.6</spotbugs.version>
7272
<maven.core.version>3.6.0</maven.core.version>
@@ -93,11 +93,6 @@
9393
</properties>
9494

9595
<dependencies>
96-
<dependency>
97-
<groupId>net.sourceforge.pmd</groupId>
98-
<artifactId>pmd-compat6</artifactId>
99-
<version>7.0.0</version>
100-
</dependency>
10196
<dependency>
10297
<groupId>javax.xml.bind</groupId>
10398
<artifactId>jaxb-api</artifactId>

sat-plugin/src/main/java/org/openhab/tools/analysis/tools/PmdChecker.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public class PmdChecker extends AbstractChecker {
6060
/**
6161
* The version of the maven-pmd-plugin that will be used
6262
*/
63-
@Parameter(property = "maven.pmd.version", defaultValue = "3.21.2")
63+
@Parameter(property = "maven.pmd.version", defaultValue = "3.24.0")
6464
private String mavenPmdVersion;
6565

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

72-
private static final String PMD_VERSION = "7.0.0";
72+
private static final String PMD_VERSION = "7.4.0";
7373
/**
7474
* Location of the properties files that contains configuration options for the maven-pmd-plugin
7575
*/

0 commit comments

Comments
 (0)