Skip to content

Commit

Permalink
Respect the maven.compiler.source and maven.compiler.target properties
Browse files Browse the repository at this point in the history
maven-compiler-plugin supports the use of the maven.compiler.source and maven.compiler.target properties to set the compiler source and target versions so those properties should be respected.
  • Loading branch information
candrews committed Feb 10, 2017
1 parent 2ea43cc commit 83b56bd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions pom.xml
Expand Up @@ -108,6 +108,8 @@
later in the file
-->
<maven.build.timestamp.format>yyyy-MM-dd HH:mm</maven.build.timestamp.format>
<maven.compiler.source>1.6</maven.compiler.source>
<maven.compiler.target>1.6</maven.compiler.target>
</properties>
<repositories>
<!--
Expand Down Expand Up @@ -1552,8 +1554,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.0</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<optimize>true</optimize>
<showWarnings>true</showWarnings>
<showDeprecation>true</showDeprecation>
Expand Down

0 comments on commit 83b56bd

Please sign in to comment.