Skip to content

Commit d6f6665

Browse files
authored
Bump PMD from 7.15.0 to 7.16.0 (#17)
1 parent 4327636 commit d6f6665

File tree

9 files changed

+70
-40
lines changed

9 files changed

+70
-40
lines changed

ant/simple-project/.ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55

66
ANT_VERSION=1.10.15
7-
PMD_VERSION=7.15.0
7+
PMD_VERSION=7.16.0
88

99
BASEDIR="$(pwd)"
1010
mkdir -p tools

custom-rules/maven-java/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ The result is a zip file: `target/pmd-java-bin-1.0.0-SNAPSHOT.zip`.
5757

5858
```xml
5959
<properties>
60-
<pmd.version>7.15.0</pmd.version>
60+
<pmd.version>7.16.0</pmd.version>
6161
</properties>
6262
...
6363
<plugin>

custom-rules/maven-java/pom.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,34 @@
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<java.version>8</java.version>
1616
<maven.compiler.release>${java.version}</maven.compiler.release>
17-
<pmd.version>7.15.0</pmd.version>
17+
<pmd.version>7.16.0</pmd.version>
1818
<pmd-designer.version>7.10.0</pmd-designer.version>
1919
</properties>
2020

2121
<repositories>
2222
<repository>
23-
<id>oss-snapshots</id>
24-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
25-
<releases><enabled>false</enabled></releases>
26-
<snapshots><enabled>true</enabled></snapshots>
23+
<name>Central Portal Snapshots</name>
24+
<id>central-portal-snapshots</id>
25+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
26+
<releases>
27+
<enabled>false</enabled>
28+
</releases>
29+
<snapshots>
30+
<enabled>true</enabled>
31+
</snapshots>
2732
</repository>
2833
</repositories>
2934
<pluginRepositories>
3035
<pluginRepository>
31-
<id>oss-snapshots</id>
32-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
33-
<releases><enabled>false</enabled></releases>
34-
<snapshots><enabled>true</enabled></snapshots>
36+
<name>Central Portal Snapshots</name>
37+
<id>central-portal-snapshots</id>
38+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
39+
<releases>
40+
<enabled>false</enabled>
41+
</releases>
42+
<snapshots>
43+
<enabled>true</enabled>
44+
</snapshots>
3545
</pluginRepository>
3646
</pluginRepositories>
3747

custom-rules/maven-plsql/pom.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,34 @@
1414
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1515
<java.version>8</java.version>
1616
<maven.compiler.release>${java.version}</maven.compiler.release>
17-
<pmd.version>7.15.0</pmd.version>
17+
<pmd.version>7.16.0</pmd.version>
1818
<pmd-designer.version>7.10.0</pmd-designer.version>
1919
</properties>
2020

2121
<repositories>
2222
<repository>
23-
<id>oss-snapshots</id>
24-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
25-
<releases><enabled>false</enabled></releases>
26-
<snapshots><enabled>true</enabled></snapshots>
23+
<name>Central Portal Snapshots</name>
24+
<id>central-portal-snapshots</id>
25+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
26+
<releases>
27+
<enabled>false</enabled>
28+
</releases>
29+
<snapshots>
30+
<enabled>true</enabled>
31+
</snapshots>
2732
</repository>
2833
</repositories>
2934
<pluginRepositories>
3035
<pluginRepository>
31-
<id>oss-snapshots</id>
32-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
33-
<releases><enabled>false</enabled></releases>
34-
<snapshots><enabled>true</enabled></snapshots>
36+
<name>Central Portal Snapshots</name>
37+
<id>central-portal-snapshots</id>
38+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
39+
<releases>
40+
<enabled>false</enabled>
41+
</releases>
42+
<snapshots>
43+
<enabled>true</enabled>
44+
</snapshots>
3545
</pluginRepository>
3646
</pluginRepositories>
3747

custom-rules/plain-java/.ci/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
set -e
55
java -version
66

7-
PMD_VERSION=7.15.0
7+
PMD_VERSION=7.16.0
88

99
echo
1010
echo "======================================================="

custom-rules/plain-java/README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,17 @@ Just with `javac` and `jar`.
1111

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

14-
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.15.0-bin.zip:
14+
2. Get the binary distribution of PMD from <https://github.com/pmd/pmd/releases>, e.g. pmd-dist-7.16.0-bin.zip:
1515

16-
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.15.0/pmd-dist-7.15.0-bin.zip
16+
$ wget https://github.com/pmd/pmd/releases/download/pmd_releases%2F7.16.0/pmd-dist-7.16.0-bin.zip
1717

18-
3. Extract the zip file, e.g. `unzip pmd-dist-7.15.0-bin.zip`
18+
3. Extract the zip file, e.g. `unzip pmd-dist-7.16.0-bin.zip`
1919

20-
$ unzip pmd-dist-7.15.0-bin.zip
20+
$ unzip pmd-dist-7.16.0-bin.zip
2121

22-
4. Now, the pmd binaries are installed under `~/code/pmd-bin-7.15.0`.
22+
4. Now, the pmd binaries are installed under `~/code/pmd-bin-7.16.0`.
2323

24-
This also includes the libraries in `~/code/pmd-bin-7.15.0/lib`.
24+
This also includes the libraries in `~/code/pmd-bin-7.16.0/lib`.
2525

2626
## Get the code from this example and build it
2727

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

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

40-
$ javac -d build -cp '../../../pmd-bin-7.15.0/lib/*' src/*.java
40+
$ javac -d build -cp '../../../pmd-bin-7.16.0/lib/*' src/*.java
4141

4242
4. Create a jar file
4343

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

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

51-
$ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.15.0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
51+
$ CLASSPATH=custom-rule-example.jar ../../pmd-bin-7.16.0/bin/pmd check --no-cache -f text -d testsrc -R myrule.xml
5252
/home/andreas/code/pmd-examples/testsrc/Test.java:2: Avoid the identifier foo.

gradle/simple-project/app/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ tasks.named('test') {
4747
}
4848

4949
pmd {
50-
toolVersion = "7.15.0"
50+
toolVersion = "7.16.0"
5151
consoleOutput = true
5252

5353
//ruleSets = ["category/java/errorprone.xml"] // default

maven/simple-project/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ This should find the following violations in Main.java:
1313

1414
Run with
1515

16-
mvn clean verify -Dpmd.version=7.16.0-SNAPSHOT -Dpmd.plugin.version=3.27.0-SNAPSHOT
16+
mvn clean verify -Dpmd.version=7.17.0-SNAPSHOT -Dpmd.plugin.version=3.27.0-SNAPSHOT
1717

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

maven/simple-project/pom.xml

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1212

1313
<pmd.plugin.version>3.26.0</pmd.plugin.version>
14-
<pmd.version>7.15.0</pmd.version>
14+
<pmd.version>7.16.0</pmd.version>
1515
</properties>
1616

1717
<build>
@@ -76,18 +76,28 @@
7676

7777
<repositories>
7878
<repository>
79-
<id>oss-snapshots</id>
80-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
81-
<releases><enabled>false</enabled></releases>
82-
<snapshots><enabled>true</enabled></snapshots>
79+
<name>Central Portal Snapshots</name>
80+
<id>central-portal-snapshots</id>
81+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
82+
<releases>
83+
<enabled>false</enabled>
84+
</releases>
85+
<snapshots>
86+
<enabled>true</enabled>
87+
</snapshots>
8388
</repository>
8489
</repositories>
8590
<pluginRepositories>
8691
<pluginRepository>
87-
<id>oss-snapshots</id>
88-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
89-
<releases><enabled>false</enabled></releases>
90-
<snapshots><enabled>true</enabled></snapshots>
92+
<name>Central Portal Snapshots</name>
93+
<id>central-portal-snapshots</id>
94+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
95+
<releases>
96+
<enabled>false</enabled>
97+
</releases>
98+
<snapshots>
99+
<enabled>true</enabled>
100+
</snapshots>
91101
</pluginRepository>
92102
<pluginRepository>
93103
<id>apache.snapshots</id>

0 commit comments

Comments
 (0)