Skip to content

Commit

Permalink
ADD maven.compiler.release=8 for cross compile compatibility (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
vharseko authored Oct 15, 2024
1 parent 7b211de commit f23d672
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -103,8 +103,8 @@

<!-- maven-compiler-plugin http://maven.apache.org/plugins/maven-compiler-plugin -->
<mavenCompilerPluginVersion>3.13.0</mavenCompilerPluginVersion>
<maven.compiler.target>1.8</maven.compiler.target>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>8</maven.compiler.target>
<maven.compiler.source>8</maven.compiler.source>

<!-- maven-enforcer-plugin -->
<maven.min.version>3.0.1</maven.min.version>
Expand Down Expand Up @@ -938,8 +938,6 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>${mavenCompilerPluginVersion}</version>
<configuration>
<source>${maven.compiler.source}</source>
<target>${maven.compiler.target}</target>
<encoding>${project.build.sourceEncoding}</encoding>
<compilerArgument>-Xlint:all</compilerArgument>
<showWarnings>true</showWarnings>
Expand Down Expand Up @@ -1410,6 +1408,15 @@
</plugins>
</build>
</profile>
<profile>
<id>set-compiler-release</id>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>
<profile>
<id>jdk16.options</id>
<activation>
Expand Down

0 comments on commit f23d672

Please sign in to comment.