uses pom property for source code version reference

pull/400/head
jackygurui 9 years ago
parent da08fb79f2
commit 4e5564bf5e

@ -55,6 +55,8 @@
<properties> <properties>
<maven.test.skip>true</maven.test.skip> <maven.test.skip>true</maven.test.skip>
<source.version>1.6</source.version>
<test.source.version>1.8</test.source.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties> </properties>
@ -281,7 +283,7 @@
<configuration> <configuration>
<linkXref>true</linkXref> <linkXref>true</linkXref>
<minimumTokens>100</minimumTokens> <minimumTokens>100</minimumTokens>
<targetJdk>1.6</targetJdk> <targetJdk>${source.version}</targetJdk>
<verbose>true</verbose> <verbose>true</verbose>
</configuration> </configuration>
</plugin> </plugin>
@ -309,8 +311,8 @@
<artifactId>maven-compiler-plugin</artifactId> <artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version> <version>3.3</version>
<configuration> <configuration>
<source>1.6</source> <source>${source.version}</source>
<target>1.6</target> <target>${source.version}</target>
<optimize>true</optimize> <optimize>true</optimize>
<showDeprecations>true</showDeprecations> <showDeprecations>true</showDeprecations>
</configuration> </configuration>
@ -323,10 +325,8 @@
</goals> </goals>
<configuration> <configuration>
<fork>true</fork> <fork>true</fork>
<source>1.8</source> <source>${test.source.version}</source>
<target>1.8</target> <target>${test.source.version}</target>
<optimize>true</optimize>
<showDeprecations>true</showDeprecations>
</configuration> </configuration>
</execution> </execution>
</executions> </executions>

Loading…
Cancel
Save