Skip to content

Commit 03c960c

Browse files
SONARPY-1020 Update analyzer to Java 11 (#1134)
1 parent 69017c9 commit 03c960c

File tree

2 files changed

+10
-11
lines changed

2 files changed

+10
-11
lines changed

pom.xml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@
7070

7171
<properties>
7272
<license.title>SonarQube Python Plugin</license.title>
73+
7374
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>
7475
<sonar.pluginClass>org.sonar.plugins.python.PythonPlugin</sonar.pluginClass>
7576
<sonar.pluginName>Python</sonar.pluginName>
@@ -96,6 +97,14 @@
9697
<sslr.version>1.23</sslr.version>
9798
<protobuf.version>3.17.3</protobuf.version>
9899
<woodstox.version>6.2.7</woodstox.version>
100+
101+
<!-- Advertise minimal required JRE version -->
102+
<jre.min.version>11</jre.min.version>
103+
104+
<!-- JDK Build versions -->
105+
<jdk.min.version>11</jdk.min.version>
106+
<jdk.source.version>11</jdk.source.version>
107+
<jdk.target.version>11</jdk.target.version>
99108
</properties>
100109

101110
<dependencyManagement>
@@ -244,16 +253,5 @@
244253
<skip.its>false</skip.its>
245254
</properties>
246255
</profile>
247-
248-
<profile>
249-
<!-- Use javac's release flag for Java 9 and higher -->
250-
<id>java9+</id>
251-
<activation>
252-
<jdk>[9,)</jdk>
253-
</activation>
254-
<properties>
255-
<maven.compiler.release>8</maven.compiler.release>
256-
</properties>
257-
</profile>
258256
</profiles>
259257
</project>

sonar-python-plugin/pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@
9797
<skipDependenciesPackaging>true</skipDependenciesPackaging>
9898
<sonarLintSupported>true</sonarLintSupported>
9999
<sonarQubeMinVersion>${sonarQubeMinVersion}</sonarQubeMinVersion>
100+
<jreMinVersion>${jre.min.version}</jreMinVersion>
100101
</configuration>
101102
</plugin>
102103

0 commit comments

Comments
 (0)