Skip to content

Commit

Permalink
Bump pmd from 7.4.0 to 7.5.0 (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel authored Aug 30, 2024
1 parent e949a8e commit b30f147
Show file tree
Hide file tree
Showing 7 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions custom-rules/maven-java/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,13 +57,13 @@ The result is a zip file: `target/pmd-java-bin-1.0.0-SNAPSHOT.zip`.

```xml
<properties>
<pmd.version>7.4.0</pmd.version>
<pmd.version>7.5.0</pmd.version>
</properties>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.24.0</version>
<version>3.25.0</version>
<executions>
<execution>
<phase>verify</phase>
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.4.0</pmd.version>
<pmd.version>7.5.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.4.0</pmd.version>
<pmd.version>7.5.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.4.0
PMD_VERSION=7.5.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.4.0-bin.zip:
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.5.0-bin.zip:

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

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

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

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

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

//ruleSets = ["category/java/errorprone.xml"] // default
Expand Down
4 changes: 2 additions & 2 deletions maven/simple-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<pmd.plugin.version>3.24.0</pmd.plugin.version>
<pmd.version>7.4.0</pmd.version>
<pmd.plugin.version>3.25.0</pmd.plugin.version>
<pmd.version>7.5.0</pmd.version>
</properties>

<build>
Expand Down

0 comments on commit b30f147

Please sign in to comment.