Skip to content

Bump PMD from 7.11.0 to 7.12.0 #12

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

Merged
merged 1 commit into from
Mar 28, 2025
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 ant/simple-project/.ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e

ANT_VERSION=1.10.15
PMD_VERSION=7.11.0
PMD_VERSION=7.12.0

BASEDIR="$(pwd)"
mkdir -p tools
Expand Down
2 changes: 1 addition & 1 deletion custom-rules/maven-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ The result is a zip file: `target/pmd-java-bin-1.0.0-SNAPSHOT.zip`.

```xml
<properties>
<pmd.version>7.11.0</pmd.version>
<pmd.version>7.12.0</pmd.version>
</properties>
...
<plugin>
Expand Down
2 changes: 1 addition & 1 deletion custom-rules/maven-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>8</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<pmd.version>7.11.0</pmd.version>
<pmd.version>7.12.0</pmd.version>
<pmd-designer.version>7.10.0</pmd-designer.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion custom-rules/maven-plsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>8</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<pmd.version>7.11.0</pmd.version>
<pmd.version>7.12.0</pmd.version>
<pmd-designer.version>7.10.0</pmd-designer.version>
</properties>

Expand Down
2 changes: 1 addition & 1 deletion custom-rules/plain-java/.ci/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
set -e
java -version

PMD_VERSION=7.11.0
PMD_VERSION=7.12.0

echo
echo "======================================================="
Expand Down
16 changes: 8 additions & 8 deletions custom-rules/plain-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,17 @@ Just with `javac` and `jar`.

For the following steps, it is assumed, you are in that directory.

2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.11.0-bin.zip:
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.12.0-bin.zip:

$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.11.0/pmd-dist-7.11.0-bin.zip
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.12.0/pmd-dist-7.12.0-bin.zip

3. Extract the zip file, e.g. `unzip pmd-dist-7.11.0-bin.zip`
3. Extract the zip file, e.g. `unzip pmd-dist-7.12.0-bin.zip`

$ unzip pmd-dist-7.11.0-bin.zip
$ unzip pmd-dist-7.12.0-bin.zip

4. Now, the pmd binaries are installed under `~/code/pmd-bin-7.11.0`.
4. Now, the pmd binaries are installed under `~/code/pmd-bin-7.12.0`.

This also includes the libraries in `~/code/pmd-bin-7.11.0/lib`.
This also includes the libraries in `~/code/pmd-bin-7.12.0/lib`.

## Get the code from this example and build it

Expand All @@ -37,7 +37,7 @@ Just with `javac` and `jar`.

3. Compile the sources, that are located in `src`, using the PMD libraries

$ javac -d build -cp '../../../pmd-bin-7.11.0/lib/*' src/*.java
$ javac -d build -cp '../../../pmd-bin-7.12.0/lib/*' src/*.java

4. Create a jar file

Expand All @@ -48,5 +48,5 @@ Just with `javac` and `jar`.

1. Run PMD with the just created jar file on the classpath, e.g. on the folder `testsrc`

$ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.11.0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
$ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.12.0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
/home/andreas/code/pmd-examples/testsrc/Test.java:2: Avoid the identifier foo.
2 changes: 1 addition & 1 deletion gradle/simple-project/app/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ tasks.named('test') {
}

pmd {
toolVersion = "7.11.0"
toolVersion = "7.12.0"
consoleOutput = true

//ruleSets = ["category/java/errorprone.xml"] // default
Expand Down
2 changes: 1 addition & 1 deletion maven/simple-project/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ This should find the following violations in Main.java:

Run with

mvn clean verify -Dpmd.version=7.11.0-SNAPSHOT -Dpmd.plugin.version=3.27.0-SNAPSHOT
mvn clean verify -Dpmd.version=7.13.0-SNAPSHOT -Dpmd.plugin.version=3.27.0-SNAPSHOT

in order to set specific version for PMD and/or maven-pmd-plugin.

Expand Down
2 changes: 1 addition & 1 deletion maven/simple-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<pmd.plugin.version>3.26.0</pmd.plugin.version>
<pmd.version>7.11.0</pmd.version>
<pmd.version>7.12.0</pmd.version>
</properties>

<build>
Expand Down