# Use trusty to still have JDK 8 available
dist: trusty
language: java
jdk:
  - oraclejdk8
  - oraclejdk11
# not available yet  - openjdk11

before_install:
 - chmod +x gradlew

install: ./gradlew checkSnapshotDependencies compileJava
script: ./gradlew check jacocoTestReport javadoc javadocJar sourcesJar checkSnapshotDependencies

after_failure:
- cat build/test-results/test/*.xml

# Use xenial to still have OpenJDK 8 available
dist: xenial
language: java
jdk:
  - openjdk8
  - openjdk11

before_install:
 - chmod +x gradlew

install: ./gradlew checkSnapshotDependencies compileJava
script: ./gradlew check jacocoTestReport javadoc javadocJar sourcesJar checkSnapshotDependencies

after_failure:
- cat build/test-results/test/*.xml

Switch to xenial and OpenJDK
Travie-CI: Switch to xenial and OpenJDK