Skip to content

Commit 5342d5a

Browse files
committed
Build with OpenJDK 6 on Travis CI
The artifacts that are published to Maven Central are built with OpenJDK 6, too.
1 parent b7e102d commit 5342d5a

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.travis.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,13 @@ install:
77
- ./mvnw test -DskipTests
88
# Delete all files created with JDK 8
99
- ./mvnw clean
10-
# Restore desired JDK
11-
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
10+
# Build with JDK 6 because we build the artifacts that are published
11+
# to Maven Central with OpenJDK 6, too.
12+
- jdk_switcher use openjdk6
1213
# Run original install command but without GPG signing
1314
- ./mvnw install -DskipTests=true -Dgpg.skip=true
15+
# Restore desired JDK
16+
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
1417
addons:
1518
apt:
1619
packages:

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,8 @@ The basic coding style is described in the
5353
System Rules supports [Travis CI](https://travis-ci.org/) (Linux) and
5454
[AppVeyor](http://www.appveyor.com/) (Windows) for continuous
5555
integration. Your pull request will be automatically build by both CI
56-
servers.
56+
servers. On Travis CI we build your pull request with OpenJDK 6 and run test
57+
with different JDKs (Java 6 to 9).
5758

5859

5960
## Release Guide

0 commit comments

Comments
 (0)