[MCOMPILER-505] - Update default source/target from 1.7 to 1.8
Signed-off-by: Jorge Solórzano <jorsol@gmail.com>
diff --git a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
index d9e5a6d..b36761a 100644
--- a/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
+++ b/src/main/java/org/apache/maven/plugin/compiler/AbstractCompilerMojo.java
@@ -105,10 +105,10 @@
private static final String INPUT_FILES_LST_FILENAME = "inputFiles.lst";
- static final String DEFAULT_SOURCE = "1.7";
-
- static final String DEFAULT_TARGET = "1.7";
-
+ static final String DEFAULT_SOURCE = "1.8";
+
+ static final String DEFAULT_TARGET = "1.8";
+
// Used to compare with older targets
static final String MODULE_INFO_TARGET = "1.9";
@@ -184,6 +184,7 @@
*
* <b>NOTE: </b>Since 3.8.0 the default value has changed from 1.5 to 1.6.
* Since 3.9.0 the default value has changed from 1.6 to 1.7
+ * Since 3.11.0 the default value has changed from 1.7 to 1.8
*/
@Parameter( property = "maven.compiler.source", defaultValue = DEFAULT_SOURCE )
protected String source;
@@ -193,6 +194,7 @@
*
* <b>NOTE: </b>Since 3.8.0 the default value has changed from 1.5 to 1.6.
* Since 3.9.0 the default value has changed from 1.6 to 1.7
+ * Since 3.11.0 the default value has changed from 1.7 to 1.8
*/
@Parameter( property = "maven.compiler.target", defaultValue = DEFAULT_TARGET )
protected String target;
diff --git a/src/site/apt/index.apt.vm b/src/site/apt/index.apt.vm
index 7162b2b..f1955d3 100644
--- a/src/site/apt/index.apt.vm
+++ b/src/site/apt/index.apt.vm
@@ -32,8 +32,8 @@
default compiler is javax.tools.JavaCompiler (if you are using java 1.6) and is used to compile Java sources.
If you want to force the plugin using <<<javac>>>, you must configure the plugin option {{{./compile-mojo.html#forceJavacCompilerUse}<<<forceJavacCompilerUse>>>}}.
- Also note that at present the default <<<source>>> setting is <<<1.7>>> and the default <<<target>>>
- setting is <<<1.7>>>, independently of the JDK you run Maven with.
+ Also note that at present the default <<<source>>> setting is <<<1.8>>> and the default <<<target>>>
+ setting is <<<1.8>>>, independently of the JDK you run Maven with.
You are highly encouraged to change these defaults by setting <<<source>>> and <<<target>>>
as described in
{{{./examples/set-compiler-source-and-target.html}Setting the -source and -target of the Java Compiler}}.