changes for java 11 upgradation
Issue-ID: SO-3082
Signed-off-by: arun chapagain <arun.chapagain@huawei.com>
Change-Id: Icb14f1a29d06d828307f0acc23d4414fecbbfaa3
diff --git a/pom.xml b/pom.xml
index 68559c9..fbb5bee 100644
--- a/pom.xml
+++ b/pom.xml
@@ -42,6 +42,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<sonar.language>java</sonar.language>
+ <java.version>11</java.version>
<sonar.java.coveragePlugin>jacoco</sonar.java.coveragePlugin>
<sonar.surefire.reportsPath>${project.build.directory}/surefire-reports</sonar.surefire.reportsPath>
<sonar.coverage.jacoco.xmlReportPaths>${project.reporting.outputDirectory}/jacoco-ut/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
@@ -329,7 +330,7 @@
<version>4.20</version>
<configuration>
<buildId>mso-${project.version}</buildId>
- <source>1.8</source>
+ <source>${java.version}</source>
</configuration>
</plugin>
<plugin>
@@ -1004,8 +1005,8 @@
<version>3.8.0</version>
<configuration>
<forceJavacCompilerUse>true</forceJavacCompilerUse>
- <source>1.8</source>
- <target>1.8</target>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
</configuration>
</plugin>
</plugins>