language: java
sudo: false
dist: trusty
jdk:
  # It's important to test on all these because of a horrible hack in the POM.
# - openjdk6
  - openjdk7
  - oraclejdk8
  - oraclejdk9
  - oraclejdk11

# Test each version with an appropriate Java version and flags to disable
# GPG signing so that we don't have to provision Travis with private keys.
install: true
script: "$TRAVIS_BUILD_DIR/scripts/build_for_travis.sh"
