Skip to content

Commit

Permalink
[MCOMPILER-584] Refresh page - Using Non-Javac Compilers
Browse files Browse the repository at this point in the history
  • Loading branch information
slawekjaranowski committed Mar 13, 2024
1 parent e78e583 commit 0e21053
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions src/site/apt/examples/set-compiler-release.apt.vm
Expand Up @@ -85,7 +85,12 @@ Setting the <<<--release>>> of the Java Compiler

The <<<--release>>> option is not supported using JDK 8. To enable a project that targets Java 8
to be built using JDK 8 and also JDK 9 or later requires the conditional usage of the
<<<--release>>> option. This may be done through the use of a profile:
<<<--release>>> option.

Conditional profile is required for the Compiler Plugin version below <<<3.13.0>>>
or compilerId different that <<<javac>>>.

This may be done through the use of a profile:

+-----
<project>
Expand All @@ -107,7 +112,12 @@ Setting the <<<--release>>> of the Java Compiler
</project>
+-----

<<Note:>> since plugin version <<<3.13.0>>> you can skip special profile and simply configure as:
* Usage on JDK 8 - automatic detection

Since version <<<3.13.0>>> of the Compiler Plugin and default <<<javac>>> compilerId you can skip special profile.
The <<<--release>>> option will be automatically used according to JDK used for compilation.

So you can simply configure as:

+-----
<project>
Expand Down

0 comments on commit 0e21053

Please sign in to comment.