language: java
sudo: false

jdk:
  - oraclejdk8
  - oraclejdk11
  - openjdk8
  - openjdk11

# How to do multiple JDKs keep changing, jdk_switcher is no longer found
#     https://docs.travis-ci.com/user/languages/java/    

#script:
#  - jdk_switcher use oraclejdk8
#  - mvn clean install -Djacoco.skip=true -DskipTests 
#  - jdk_switcher use oraclejdk9
#  - mvn test -DargLine=--illegal-access=deny
#  - jdk_switcher use oraclejdk8
#  - mvn test -Daccessibility=true -Dverbose=true
cache:
  directories:
    - $HOME/.m2
after_success:
  - bash <(curl -s https://codecov.io/bash)

language: java
dist: xenial

jdk:
  - oraclejdk8
  - oraclejdk11
  - openjdk8
  - openjdk11

# How to do multiple JDKs keep changing, jdk_switcher is no longer found
#     https://docs.travis-ci.com/user/languages/java/    

#script:
#  - jdk_switcher use oraclejdk8
#  - mvn clean install -Djacoco.skip=true -DskipTests 
#  - jdk_switcher use oraclejdk9
#  - mvn test -DargLine=--illegal-access=deny
#  - jdk_switcher use oraclejdk8
#  - mvn test -Daccessibility=true -Dverbose=true
cache:
  directories:
    - $HOME/.m2
after_success:
  - bash <(curl -s https://codecov.io/bash)

Use Travis dist xenial to get modern Java
Use Travis dist xenial to get modern Java
