language: java
jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7

addons:
  hosts:
    - localhost
  hostname: localhost

before_cache:
  - rm -f $HOME/.gradle/caches/modules-2/modules-2.lock
cache:
  directories:
    - $HOME/.gradle/caches/
    - $HOME/.gradle/wrapper/

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

language: java
jdk:
  - oraclejdk8
  - openjdk7

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)

Build using only oraclejdk8 and openjdk7
Build using only oraclejdk8 and openjdk7

Removed oraclejdk7 as it reached its end of life.

See: https://docs.travis-ci.com/user/reference/trusty/#jvm-clojure-groovy-java-scala-images
