travis: add java 9 to build (closes #23)

pom.xml: add java 9 profile and override jacoco version to make build pass
This commit is contained in:
Pascal Schumacher 2017-10-02 12:02:32 +02:00 committed by pascalschumacher
parent 27cdc55728
commit d20e5abaa3
2 changed files with 17 additions and 0 deletions

View File

@ -22,6 +22,7 @@ script:
jdk:
- openjdk7
- oraclejdk8
- oraclejdk9
after_success:
- mvn -B -V -Ptravis-jacoco clean test jacoco:report coveralls:report

16
pom.xml
View File

@ -152,6 +152,9 @@ CSV files of various types.
<checkstyle.version>2.17</checkstyle.version>
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>
<checkstyle.resourceExcludes>LICENSE.txt, NOTICE.txt</checkstyle.resourceExcludes>
<!-- Override jacoco version for java 9 compatibility -->
<commons.jacoco.version>0.7.9</commons.jacoco.version>
</properties>
<build>
@ -512,6 +515,19 @@ CSV files of various types.
</plugins>
</build>
</profile>
<profile>
<id>java9</id>
<activation>
<jdk>9</jdk>
</activation>
<properties>
<!-- versions below 3.0.0 do not work with java 9 -->
<commons.javadoc.version>3.0.0-M1</commons.javadoc.version>
<!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
<coveralls.skip>true</coveralls.skip>
</properties>
</profile>
</profiles>
</project>