Skip to content

Commit

Permalink
Fixed compilation error on Java 8. Added Maven Compiler Plugin config…
Browse files Browse the repository at this point in the history
…uration for Java 8 with an empty release property.
  • Loading branch information
ChristopheClermont committed May 30, 2024
1 parent 31838de commit a4206d4
Showing 1 changed file with 13 additions and 3 deletions.
16 changes: 13 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,8 @@
</developers>

<properties>
<!-- Java 8 -->
<maven.compiler.release>8</maven.compiler.release>
<maven.compiler.target>${maven.compiler.release}</maven.compiler.target>
<!-- Java 8 & 17 -->
<maven.compiler.release>17</maven.compiler.release>

<!-- Reproducible Build -->
<!-- See https://maven.apache.org/guides/mini/guide-reproducible-builds.html -->
Expand Down Expand Up @@ -146,6 +145,17 @@
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<executions>
<execution>
<id>default-compile</id>
<phase>compile</phase>
<goals>
<goal>compile</goal>
</goals>
<configuration>
<release>${null}<!-- keep empty to force target Java 8 --></release>
<target>1.8</target>
</configuration>
</execution>
<execution>
<id>compile-java-21</id>
<phase>compile</phase>
Expand Down

0 comments on commit a4206d4

Please sign in to comment.