Yes that would be nice.
Also, in the same way as there is a note for "target", I thought of
adding a note about the usage of "source"; it doesn't guarantee that the
code can compile with the specified JDK version. For that, you need to
use toolchains (and we can link to the Toolchain Plugin).
Guillaume,
Le 19/10/2016 à 08:09, Hervé BOUTEMY a écrit :
good idea
when I see that, I think we should also talk about maven.compiler.source and
maven.compiler target properties in this focused page, isn't it?
Regards,
Hervé
Le dimanche 16 octobre 2016 22:38:01 gb...@apache.org a écrit :
Author: gboue
Date: Sun Oct 16 22:38:01 2016
New Revision: 1765195
URL: http://svn.apache.org/viewvc?rev=1765195&view=rev
Log:
Updating the "Setting the -source and -target of the Java Compiler"
documentation page by referencing Java 8 features instead of Java 4. This
closes #69.
Modified:
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
r-source-and-target.apt.vm
Modified:
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
r-source-and-target.apt.vm URL:
http://svn.apache.org/viewvc/maven/plugins/trunk/maven-compiler-plugin/src/
site/apt/examples/set-compiler-source-and-target.apt.vm?rev=1765195&r1=17651
94&r2=1765195&view=diff
===========================================================================
=== ---
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
r-source-and-target.apt.vm (original) +++
maven/plugins/trunk/maven-compiler-plugin/src/site/apt/examples/set-compile
r-source-and-target.apt.vm Sun Oct 16 22:38:01 2016 @@ -33,9 +33,9 @@
Setting the <<<-source>>> and <<<-target
such command using <<<-source>>> and <<<-target>>>. The Compiler Plugin
can also be configured to provide these options during compilation.
- For example, if you want to enable assertions (<<<-source 1.4>>>) and
also want the - compiled classes to be compatible with JVM 1.4 (<<<-target
1.4>>>), you can then - put:
+ For example, if you want to use the Java 8 language features (<<<-source
1.8>>>) + and also want the compiled classes to be compatible with JVM 1.8
(<<<-target 1.8>>>), + you can then put:
+-----
<project>
@@ -48,8 +48,8 @@ Setting the <<<-source>>> and <<<-target
<artifactId>maven-compiler-plugin</artifactId>
<version>${project.version}</version>
<configuration>
- <source>1.4</source>
- <target>1.4</target>
+ <source>1.8</source>
+ <target>1.8</target>
</configuration>
</plugin>
</plugins>
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org
---
L'absence de virus dans ce courrier électronique a été vérifiée par le logiciel
antivirus Avast.
https://www.avast.com/antivirus
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@maven.apache.org
For additional commands, e-mail: dev-h...@maven.apache.org