sudo: false
language: java
jdk: 
  - openjdk11
  - oraclejdk9
  - oraclejdk8
cache:
  directories:
    - "$HOME/.m2/repository"
before_cache:
  - rm -rf $HOME/.m2/repository/org/threeten/threetenbp
install:
  - mvn --version
script:
  - mvn install site -e -B
  - if [[ $TRAVIS_TAG =~ ^website.*$ ]] && [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then chmod +x ./.github/website.sh; .github/website.sh; fi
  - if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then chmod +x ./.github/website.sh; .github/website.sh; fi
# secure keys for GITHUB_TOKEN
env:
  global:
    secure: h37TUVcVI30W5UyQBXMCkiKeY7ZWriQmaVLJQJUEgjTP2hDvHbM6kypx7WaU24c72gqL3peJDv3XEfJngLUDZ4n0v5apRDacfJkyXVdPu1qF5fWTjGWDau0hFzYvlHTbtLQLP6e1OIa/ZrgtHmkTw+XG9/bEY+6xp9GbC8fGIdw=

sudo: false
language: java
jdk: 
  - openjdk11
  - openjdk8
cache:
  directories:
    - "$HOME/.m2/repository"
before_cache:
  - rm -rf $HOME/.m2/repository/org/threeten/threetenbp
install:
  - mvn --version
script:
  - mvn install site -e -B
  - if [[ $TRAVIS_TAG =~ ^website.*$ ]] && [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then chmod +x ./.github/website.sh; .github/website.sh; fi
  - if [[ $TRAVIS_TAG =~ ^v.*$ ]] && [ "$TRAVIS_PULL_REQUEST" == "false" ] && [ "$TRAVIS_JDK_VERSION" == "openjdk11" ]; then chmod +x ./.github/website.sh; .github/website.sh; fi
# secure keys for GITHUB_TOKEN
env:
  global:
    secure: h37TUVcVI30W5UyQBXMCkiKeY7ZWriQmaVLJQJUEgjTP2hDvHbM6kypx7WaU24c72gqL3peJDv3XEfJngLUDZ4n0v5apRDacfJkyXVdPu1qF5fWTjGWDau0hFzYvlHTbtLQLP6e1OIa/ZrgtHmkTw+XG9/bEY+6xp9GbC8fGIdw=

Fix JDKs used on Travis CI
Fix JDKs used on Travis CI
