Skip to content

Commit d20e5ab

Browse files
travis: add java 9 to build (closes apache#23)
pom.xml: add java 9 profile and override jacoco version to make build pass
1 parent 27cdc55 commit d20e5ab

2 files changed

Lines changed: 17 additions & 0 deletions

File tree

.travis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ script:
2222
jdk:
2323
- openjdk7
2424
- oraclejdk8
25+
- oraclejdk9
2526

2627
after_success:
2728
- mvn -B -V -Ptravis-jacoco clean test jacoco:report coveralls:report

pom.xml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,9 @@ CSV files of various types.
152152
<checkstyle.version>2.17</checkstyle.version>
153153
<checkstyle.header.file>${basedir}/LICENSE-header.txt</checkstyle.header.file>
154154
<checkstyle.resourceExcludes>LICENSE.txt, NOTICE.txt</checkstyle.resourceExcludes>
155+
156+
<!-- Override jacoco version for java 9 compatibility -->
157+
<commons.jacoco.version>0.7.9</commons.jacoco.version>
155158
</properties>
156159

157160
<build>
@@ -512,6 +515,19 @@ CSV files of various types.
512515
</plugins>
513516
</build>
514517
</profile>
518+
519+
<profile>
520+
<id>java9</id>
521+
<activation>
522+
<jdk>9</jdk>
523+
</activation>
524+
<properties>
525+
<!-- versions below 3.0.0 do not work with java 9 -->
526+
<commons.javadoc.version>3.0.0-M1</commons.javadoc.version>
527+
<!-- coverall version 4.3.0 does not work with java 9, see https://github.com/trautonen/coveralls-maven-plugin/issues/112 -->
528+
<coveralls.skip>true</coveralls.skip>
529+
</properties>
530+
</profile>
515531
</profiles>
516532

517533
</project>

0 commit comments

Comments
 (0)