Skip to content

Commit 9a7265c

Browse files
authored
Merge pull request #501 from jborgers/master-javaversionstest
removed testing java20 and java22, updated readme to support starting java 8
2 parents cc70a08 + 730c81a commit 9a7265c

File tree

4 files changed

+3
-5
lines changed

4 files changed

+3
-5
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ Use version 4.0+ for child plugins with custom rules written in PMD 7, such as [
2828
Sonar-PMD analyzes the given source code with the Java source version defined in your Gradle or Maven project.
2929
In case you are not using one of these build tools, or if that does not match the version you are using, set the `sonar.java.source` property to tell PMD which version of Java your source code complies to.
3030

31-
Possible values : 1.6 to 1.8/8 to 24-preview
31+
Possible values : 8 to 24 and 24-preview
3232

3333
## Table of supported versions
3434
| Sonar-PMD Plugin | 3.4.0 | 3.5.0 | 3.5.1 | 4.0.0 |

integration-test/src/test/java/com/sonar/it/java/suite/PmdIT.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ static void startSonar() {
4747
}
4848

4949
@ParameterizedTest
50-
@EnumSource(value = DefinedJavaVersion.class, mode = EnumSource.Mode.INCLUDE, names = {"JAVA_1_8", "JAVA_11", "JAVA_17", "JAVA_20", "JAVA_21", "JAVA_22", "JAVA_23", "JAVA_24", "JAVA_24_PREVIEW"})
50+
@EnumSource(value = DefinedJavaVersion.class, mode = EnumSource.Mode.INCLUDE, names = {"JAVA_1_8", "JAVA_11", "JAVA_17", "JAVA_21", "JAVA_23", "JAVA_24", "JAVA_24_PREVIEW"})
5151
void testPmdExtensionsWithDifferentJavaVersions(DefinedJavaVersion version) {
5252

5353
// given

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@
100100
<version.sonar-packaging.plugin>1.23.0.740</version.sonar-packaging.plugin>
101101
<sonar-plugin-api-impl.version>25.1.0.102122</sonar-plugin-api-impl.version>
102102
<sonar-plugin-api.version>11.1.0.2693</sonar-plugin-api.version>
103-
<sonar-orchestrator.version>5.1.0.2254</sonar-orchestrator.version>
103+
<sonar-orchestrator.version>5.2.0.2403</sonar-orchestrator.version>
104104
<sonar-ws-client.version>5.1</sonar-ws-client.version>
105105
<!-- Technical settings -->
106106
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>

sonar-pmd-plugin/src/main/java/org/sonar/plugins/pmd/PmdTemplate.java

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,6 @@ public class PmdTemplate {
4040

4141
private static Map<String, String> prepareVersions() {
4242
final Map<String, String> versions = new HashMap<>();
43-
versions.put("6", "1.6");
44-
versions.put("7", "1.7");
4543
versions.put("8", "1.8");
4644
versions.put("1.9", "9");
4745
versions.put("1.10", "10");

0 commit comments

Comments
 (0)