language: java
sudo: false
install: true
addons:
  sonarcloud:
    organization: "zeroturnaround"
    token: $SONAR_TOKEN
jdk:
  - oraclejdk8
script:
  - git fetch --unshallow
  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'

language: java
sudo: false
install: true
addons:
  sonarcloud:
    organization: "zeroturnaround"
    token: $SONAR_TOKEN
jdk:
  - openjdk8
script:
  - git fetch --unshallow
  - mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package sonar:sonar
cache:
  directories:
    - '$HOME/.m2/repository'
    - '$HOME/.sonar/cache'

Use OpenJDK 8 for Travis CI builds
Use OpenJDK 8 for Travis CI builds

Apparently, Oracle's JDK 8 is not available as the Oracle licensing has changed. Using OpenJDK instead.
