Skip to content

Commit

Permalink
Merge pull request #19 from pascalgn/fix-java-8
Browse files Browse the repository at this point in the history
Use --release flag for correct cross-compilation
  • Loading branch information
chonton authored Jan 17, 2020
2 parents 6155222 + 24c0001 commit 60d0b77
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@
<configuration>
<rules>
<requireJavaVersion>
<version>[8,)</version>
<version>[1.8,)</version>
</requireJavaVersion>
<requireMavenVersion>
<version>[3.5,)</version>
Expand Down Expand Up @@ -375,6 +375,16 @@
</reporting>

<profiles>
<!-- make sure to release for Java 8 -->
<profile>
<activation>
<jdk>[9,)</jdk>
</activation>
<properties>
<maven.compiler.release>8</maven.compiler.release>
</properties>
</profile>

<!-- publish site to github,
1. mvn [clean install] site
2. mvn -P gh-pages pre-site
Expand Down

0 comments on commit 60d0b77

Please sign in to comment.