Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Configure javac to use --release when building on JDK 9+ (#58)
We use the maven-compiler-plugin's `maven.compiler.release` property to configure the --release value when building on JDK 9 or later. Using --release is preferable to using --source/--target as --release also factors in the class libraries available in the release. Unfortunately, setting this property when building on JDK 8 causes a build error as the maven-compiler-plugin passes the --release option to javac which does not understand it. So we use a maven profile to set the property only when JDK is 9 or higher. Signed-off-by: BJ Hargrave <hargrave@us.ibm.com>
- Loading branch information