Specify javac source and target via maven.compiler.* properties

This commit is contained in:
Ville Skyttä 2015-12-21 22:54:28 +02:00 committed by Clebert Suconic
parent bd1df5e8ba
commit a681d5e750
1 changed files with 3 additions and 2 deletions

View File

@ -99,6 +99,9 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
<maven.compiler.source>1.7</maven.compiler.source>
<maven.compiler.target>1.7</maven.compiler.target>
<!-- <!--
note for idea users: note for idea users:
@ -783,8 +786,6 @@
<!-- Enable Google's Error-Prone https://github.com/google/error-prone --> <!-- Enable Google's Error-Prone https://github.com/google/error-prone -->
<configuration> <configuration>
<showWarnings>true</showWarnings> <showWarnings>true</showWarnings>
<source>1.7</source>
<target>1.7</target>
<forceJavacCompilerUse>true</forceJavacCompilerUse> <forceJavacCompilerUse>true</forceJavacCompilerUse>
<compilerId>${javac-compiler-id}</compilerId> <compilerId>${javac-compiler-id}</compilerId>
<compilerArgs> <compilerArgs>