Skip to content

Commit

Permalink
build: compile java 8 for JDK 19 or higher
Browse files Browse the repository at this point in the history
  • Loading branch information
tony19 committed Jan 20, 2024
1 parent 021a50e commit 3ac8df7
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,20 @@
</build>

<profiles>
<profile>
<!--
If using JDK 19+, switch to Java 8 here (the minimum
supported version). Some users that mainly depend on newer
JDKS are still using this library for backward compatibility.
-->
<id>set-compiler-release</id>
<activation>
<jdk>[19,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<id>release-sign-artifacts</id>
<activation>
Expand Down

0 comments on commit 3ac8df7

Please sign in to comment.