language: java
dist: trusty
jdk:
  - openjdk7
cache:
  directories:
  - $HOME/.m2

---
language: java

env:
  - TRAVIS_JDK=8
  - TRAVIS_JDK=11

before_install: curl -Ls https://git.io/jabba | bash && . ~/.jabba/jabba.sh
install: jabba install "adopt@~1.$TRAVIS_JDK.0-0" && jabba use "$_" && java -Xmx32m -version

script: mvn test

cache:
  directories:
    - "$HOME/.m2"
    - "$HOME/.jabba/jdk"

Build using Java 8 & 11
Build using Java 8 & 11
