Skip to content

Commit

Permalink
Build with OpenJDK 6 on Travis CI
Browse files Browse the repository at this point in the history
The artifacts that are published to Maven Central are built with
OpenJDK 6, too.
  • Loading branch information
stefanbirkner committed Nov 6, 2018
1 parent b7e102d commit 5342d5a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
7 changes: 5 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,13 @@ install:
- ./mvnw test -DskipTests
# Delete all files created with JDK 8
- ./mvnw clean
# Restore desired JDK
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
# Build with JDK 6 because we build the artifacts that are published
# to Maven Central with OpenJDK 6, too.
- jdk_switcher use openjdk6
# Run original install command but without GPG signing
- ./mvnw install -DskipTests=true -Dgpg.skip=true
# Restore desired JDK
- export JAVA_HOME=$ORIGINAL_JAVA_HOME
addons:
apt:
packages:
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ The basic coding style is described in the
System Rules supports [Travis CI](https://travis-ci.org/) (Linux) and
[AppVeyor](http://www.appveyor.com/) (Windows) for continuous
integration. Your pull request will be automatically build by both CI
servers.
servers. On Travis CI we build your pull request with OpenJDK 6 and run test
with different JDKs (Java 6 to 9).


## Release Guide
Expand Down

0 comments on commit 5342d5a

Please sign in to comment.