Skip to content

Commit

Permalink
Bump pmd from 7.7.0 to 7.10.0 (#10)
Browse files Browse the repository at this point in the history
  • Loading branch information
adangel authored Jan 31, 2025
1 parent 995d0f0 commit 47125b8
Show file tree
Hide file tree
Showing 11 changed files with 23 additions and 23 deletions.
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.7.0
PMD_VERSION=7.10.0

BASEDIR="$(pwd)"
mkdir -p tools
Expand Down
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.7.0</pmd.version>
<pmd.version>7.10.0</pmd.version>
</properties>
...
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-pmd-plugin</artifactId>
<version>3.25.0</version>
<version>3.26.0</version>
<executions>
<execution>
<phase>verify</phase>
Expand Down
4 changes: 2 additions & 2 deletions custom-rules/maven-java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>8</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<pmd.version>7.7.0</pmd.version>
<pmd-designer.version>7.2.0</pmd-designer.version>
<pmd.version>7.10.0</pmd.version>
<pmd-designer.version>7.10.0</pmd-designer.version>
</properties>

<repositories>
Expand Down
4 changes: 2 additions & 2 deletions custom-rules/maven-plsql/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<java.version>8</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<pmd.version>7.7.0</pmd.version>
<pmd-designer.version>7.2.0</pmd-designer.version>
<pmd.version>7.10.0</pmd.version>
<pmd-designer.version>7.10.0</pmd-designer.version>
</properties>

<repositories>
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.7.0
PMD_VERSION=7.10.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.7.0-bin.zip:
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.10.0-bin.zip:

$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.7.0/pmd-dist-7.7.0-bin.zip
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.10.0/pmd-dist-7.10.0-bin.zip

3. Extract the zip file, e.g. `unzip pmd-dist-7.7.0-bin.zip`
3. Extract the zip file, e.g. `unzip pmd-dist-7.10.0-bin.zip`

$ unzip pmd-dist-7.7.0-bin.zip
$ unzip pmd-dist-7.10.0-bin.zip

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

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

//ruleSets = ["category/java/errorprone.xml"] // default
Expand Down
2 changes: 1 addition & 1 deletion gradle/simple-project/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

[versions]
guava = "32.1.3-jre"
junit-jupiter = "5.10.0"
junit-jupiter = "5.11.4"

[libraries]
guava = { module = "com.google.guava:guava", version.ref = "guava" }
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.10.2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.12.1-bin.zip
networkTimeout=10000
validateDistributionUrl=true
zipStoreBase=GRADLE_USER_HOME
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.0.0-SNAPSHOT -Dpmd.plugin.version=3.15.0-SNAPSHOT
mvn clean verify -Dpmd.version=7.11.0-SNAPSHOT -Dpmd.plugin.version=3.27.0-SNAPSHOT

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

Expand Down
6 changes: 3 additions & 3 deletions maven/simple-project/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,16 @@
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

<pmd.plugin.version>3.25.0</pmd.plugin.version>
<pmd.version>7.7.0</pmd.version>
<pmd.plugin.version>3.26.0</pmd.plugin.version>
<pmd.version>7.10.0</pmd.version>
</properties>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.12.1</version>
<version>3.13.0</version>
</plugin>

<plugin>
Expand Down

0 comments on commit 47125b8

Please sign in to comment.