language: java
jdk:
  - oraclejdk8

addons:
  hosts:
    - localhost
  hostname: localhost

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/

after_success:
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

language: java
jdk:
  - openjdk8

addons:
  hosts:
    - localhost
  hostname: localhost
  apt:
    packages:
      - openjdk-8-jdk

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/

after_success:
  - ./gradlew jacocoTestReport
  - bash <(curl -s https://codecov.io/bash)

Update Travis config to install and use OpenJDK 8
Update Travis config to install and use OpenJDK 8