language: java
jdk:
  - openjdk8
  - openjdk9
  - openjdk10
  - openjdk11
  - openjdk12
  - openjdk13
  - openjdk14
  - openjdk15
  - openjdk-ea
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
install: true
script:
  - ./gradlew --scan build

language: java
jdk:
  - openjdk8
  - openjdk9
  - openjdk10
  - openjdk11
  - openjdk12
  - openjdk13
  - openjdk14
  - openjdk15
# Gradle currently doesn't support Java 16 or higher.
# See also: https://github.com/gradle/gradle/issues/13629
# See also: https://github.com/gradle/gradle/issues/13481
#
#  - openjdk16
#  - openjdk-ea
before_cache:
  - rm -f  $HOME/.gradle/caches/modules-2/modules-2.lock
  - rm -fr $HOME/.gradle/caches/*/plugin-resolution/
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/
install: true
script:
  - ./gradlew --scan build

Disable OpenJDK 16 and higher in Travis CI test matrix
Disable OpenJDK 16 and higher in Travis CI test matrix
