Created
August 29, 2018 21:01
-
-
Save bondolo/822dec14bea0080243d87e00b45fc846 to your computer and use it in GitHub Desktop.
profile snippet from parent pom for configuring release with compiler on jdk >= 9
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<profile> | |
<id>Java 9+ configuration</id> | |
<build> | |
<plugins> | |
<plugin> | |
<groupId>org.apache.maven.plugins</groupId> | |
<artifactId>maven-compiler-plugin</artifactId> | |
<configuration> | |
<!-- Use -release compiler option rather than source/target if 9+ --> | |
<release>${maven.compiler.target}</release> | |
</configuration> | |
</plugin> | |
</plugins> | |
</build> | |
<activation> | |
<jdk>[1.9,)</jdk> | |
</activation> | |
</profile> | |
</profiles> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment