language: java
install: true
script: if [[ "$TRAVIS_REPO_SLUG" == "immutables/immutables" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then mvn deploy -Dlint-javadoc -DdeployAtEnd=true --settings settings.xml; else mvn package; fi
sudo: false
cache:
  directories:
  - $HOME/.m2
jdk:
  - oraclejdk8


language: java
install: true
script: if [[ "$TRAVIS_REPO_SLUG" == "immutables/immutables" && "$TRAVIS_BRANCH" == "master" && "$TRAVIS_EVENT_TYPE" != "pull_request" ]]; then mvn deploy -Dlint-javadoc -DdeployAtEnd=true --settings settings.xml; else mvn package; fi
sudo: false
cache:
  directories:
  - $HOME/.m2
jdk:
  - openjdk8

Use openjdk8 (previously oraclejdk8) for Travis CI
Use openjdk8 (previously oraclejdk8) for Travis CI

Travis build with oraclejdk8 fails due to LTS ?
