How to transfer git repositories from GitLab to GitHub?
Setting the -source and -target of the Java Compiler on Maven
Andriy AndrunevchynIt’s not necessary to add compiler plugin to your project when you want to set -source/-target java version. Just add following properties, which are the default property names for the plugin parameters.
<properties> <maven.compiler.source>1.8</maven.compiler.source> <maven.compiler.target>1.8</maven.compiler.target> </properties>
Pay attention! For Java 9 it will be version 9 not 1.9
<properties> <maven.compiler.source>9</maven.compiler.source> <maven.compiler.target>9</maven.compiler.target> </properties>
Comments
0
There are currently no comments.