Updated to java 1.8.
Change-Id: I3abc46060b5ffe0fe51f148a72db891acbc05a99
diff --git a/pom.xml b/pom.xml
index e63d6c9..7087576 100644
--- a/pom.xml
+++ b/pom.xml
@@ -37,6 +37,7 @@
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jackson.version>2.9.1</jackson.version>
+ <java.version>1.8</java.version>
</properties>
<repositories>
@@ -178,14 +179,14 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
- <version>3.3</version>
+ <version>3.7.0</version>
<configuration>
<!-- <verbose>true</verbose>
<fork>true</fork> -->
- <executable>${env.JAVA7_HOME}/bin/javac</executable>
- <compilerVersion>1.7</compilerVersion>
- <source>1.7</source>
- <target>1.7</target>
+ <!-- <executable>${env.JAVA7_HOME}/bin/javac</executable> -->
+ <compilerVersion>2.0</compilerVersion>
+ <source>${java.version}</source>
+ <target>${java.version}</target>
</configuration>
</plugin>
<!-- <plugin>
@@ -240,9 +241,9 @@
<configuration>
<configFile>${project.basedir}/Format.xml</configFile>
<overrideConfigCompilerVersion>true</overrideConfigCompilerVersion>
- <compilerSource>1.7</compilerSource>
- <compilerCompliance>1.7</compilerCompliance>
- <compilerTargetPlatform>1.7</compilerTargetPlatform>
+ <compilerSource>${java.version}</compilerSource>
+ <compilerCompliance>${java.version}</compilerCompliance>
+ <compilerTargetPlatform>${java.version}</compilerTargetPlatform>
</configuration>
</plugin>
<plugin>