Skip to content

Commit

Permalink
[MPOM-264] Set "maven.compiler.release" on JDK 9+
Browse files Browse the repository at this point in the history
  • Loading branch information
kwin committed Jan 15, 2024
1 parent d86262c commit f0d7b0d
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,17 @@ under the License.
</build>
</profile>
<!-- END SNIPPET: release-profile -->
<profile>
<id>jdk9ornewer</id>
<activation>
<!-- this does not support toolchains, https://issues.apache.org/jira/browse/MNG-6943 -->
<jdk>[9,)</jdk>
</activation>
<properties>
<!-- https://maven.apache.org/plugins/maven-compiler-plugin/examples/set-compiler-release.html, affects m-compiler-p and m-javadoc-p -->
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
</properties>
</profile>
<profile>
<id>only-eclipse</id>
<activation>
Expand Down

0 comments on commit f0d7b0d

Please sign in to comment.