Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade PMD to 7.4.0 #468

Merged
merged 1 commit into from
Aug 11, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.3</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