language: java

sudo: false

jdk:
- oraclejdk8

script:
- ./gradlew

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/
language: java

sudo: false

matrix:
  include:

  - name: "Oracle Java 8"
    jdk: oraclejdk8
    os: linux

  - name: "Oracle Java 11"
    jdk: oraclejdk11
    os: linux

  - name: "OpenJDK Java 8"
    jdk: openjdk8
    os: linux

  - name: "OpenJDK Java 11"
    jdk: openjdk11
    os: linux

script:
- ./gradlew

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/
Add matrix of JDK builds.
[Java] Add matrix of JDK builds.
