Skip to content

Commit

Permalink
Bump pmd from 7.2.0 to 7.4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel committed Jul 26, 2024
1 parent 929de21 commit f1f065c
Show file tree
Hide file tree
Showing 7 changed files with 14 additions and 14 deletions.
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.2.0</pmd.version>
<pmd.version>7.4.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.2.0</pmd.version>
<pmd.version>7.4.0</pmd.version>
<pmd-designer.version>7.2.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.2.0</pmd.version>
<pmd.version>7.4.0</pmd.version>
<pmd-designer.version>7.2.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.2.0
PMD_VERSION=7.4.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.0.0-bin.zip:
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.4.0-bin.zip:

$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.0.0/pmd-dist-7.0.0-bin.zip
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.4.0/pmd-dist-7.4.0-bin.zip

3. Extract the zip file, e.g. `unzip pmd-dist-7.0.0-bin.zip`
3. Extract the zip file, e.g. `unzip pmd-dist-7.4.0-bin.zip`

$ unzip pmd-dist-7.0.0-bin.zip
$ unzip pmd-dist-7.4.0-bin.zip

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

This also includes the libraries in `~/code/pmd-bin-7.0.0/lib`.
This also includes the libraries in `~/code/pmd-bin-7.4.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.0.0/lib/*' src/*.java
$ javac -d build -cp '../../../pmd-bin-7.4.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.0.0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
$ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.4.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.2.0"
toolVersion = "7.4.0"
consoleOutput = true

//ruleSets = ["category/java/errorprone.xml"] // default
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.24.0</pmd.plugin.version>
<pmd.version>7.2.0</pmd.version>
<pmd.version>7.4.0</pmd.version>
</properties>

<build>
Expand Down

0 comments on commit f1f065c

Please sign in to comment.