[
https://issues.apache.org/jira/browse/MCOMPILER-582?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17826842#comment-17826842
]
ASF GitHub Bot commented on MCOMPILER-582:
------------------------------------------
kwin commented on code in PR #228:
URL:
https://github.com/apache/maven-compiler-plugin/pull/228#discussion_r1523807553
##########
src/site/apt/examples/set-compiler-release.apt.vm:
##########
@@ -106,3 +111,34 @@ Setting the <<<--release>>> of the Java Compiler
[...]
</project>
+-----
+
+* 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.
Review Comment:
```suggestion
The <<<release>>> parameter will only be effective for Java 9 or above,
otherwise the <<<source>>> and <<<target>>> will be passed to the compiler.
```
> Release option without profile for JDK 8
> ----------------------------------------
>
> Key: MCOMPILER-582
> URL: https://issues.apache.org/jira/browse/MCOMPILER-582
> Project: Maven Compiler Plugin
> Issue Type: New Feature
> Reporter: Slawomir Jaranowski
> Assignee: Slawomir Jaranowski
> Priority: Major
> Fix For: 3.13.0
>
>
> Since plexus-compiler 2.15.0 `--release` options is automatically disregarded
> for javac version < 9
> (https://github.com/codehaus-plexus/plexus-compiler/issues/140). It is no
> longer necessary to guard that parameter with a profile.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)