Skip to content

Commit

Permalink
Require Java SE 17 for a minimum version, but compile down to Java 11.
Browse files Browse the repository at this point in the history
Signed-off-by: James R. Perkins <[email protected]>
  • Loading branch information
jamezp committed Jul 25, 2024
1 parent 69bf0b9 commit eb0fed6
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 3 additions & 5 deletions parent-pom/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,9 @@
<skipFormatting>false</skipFormatting>
<maven.test.redirectTestOutputToFile>true</maven.test.redirectTestOutputToFile>

<!-- Default to Java 11 -->
<jdk.min.version>11</jdk.min.version>
<maven.compiler.target>11</maven.compiler.target>
<maven.compiler.source>11</maven.compiler.source>
<maven.compiler.release>${maven.compiler.target}</maven.compiler.release>
<!-- Require a minimum of 17 to build with a release version of 11. -->
<jdk.min.version>17</jdk.min.version>
<maven.compiler.release>11</maven.compiler.release>

<version.nexus.staging.maven.plugin>1.7.0</version.nexus.staging.maven.plugin>
<version.formatter.maven.plugin>2.24.1</version.formatter.maven.plugin>
Expand Down
6 changes: 6 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,12 @@

<properties>
<version.nexus.staging.maven.plugin>1.7.0</version.nexus.staging.maven.plugin>

<!-- Currently, this project doesn't compile anything. However, for consistency require a minimum of 17 to
build with a release version of 11.
-->
<jdk.min.version>17</jdk.min.version>
<maven.compiler.release>11</maven.compiler.release>
</properties>

<distributionManagement>
Expand Down

0 comments on commit eb0fed6

Please sign in to comment.