language: java
jdk:
  - openjdk8
  - oraclejdk8
script: ./gradlew check javadoc

# Use container based infrastructure
# http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
 
# Gradle caches
cache:
  directories:
    - $HOME/.gradle/wrapper

language: java
jdk:
  - oraclejdk8
  - oraclejdk7
  - openjdk7
script: ./gradlew check javadoc

# Use container based infrastructure
# http://blog.travis-ci.com/2014-12-17-faster-builds-with-container-based-infrastructure/
sudo: false
 
# Gradle caches
cache:
  directories:
    - $HOME/.gradle/wrapper

Disable OpenJDK 8 CI builds, enable for 7
Disable OpenJDK 8 CI builds, enable for 7

Not so fast: OpenJDK 8 isn't really supported. The future is yet to come.

See travis-ci/travis-ci#2968
