language: java

addons:
  hosts:
    - short-hostname
  hostname: short-hostname

matrix:
  include:
    - jdk: openjdk7
      dist: precise
    - jdk: oraclejdk7
      dist: precise
    - jdk: oraclejdk8
    - jdk: oraclejdk9

notifications:
  email:
    on_success: never

sudo: false

script:
  - ./gradlew clean test

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/

sudo: required

language: java

addons:
  hosts:
    - short-hostname
  hostname: short-hostname

jdk:
  - openjdk7
  - oraclejdk8
  - oraclejdk9

before_install:
  # Work around missing crypto in openjdk7
  - |
    if [ "$TRAVIS_JDK_VERSION" == "openjdk7" ]; then
      sudo wget "https://bouncycastle.org/download/bcprov-ext-jdk15on-158.jar" -O "${JAVA_HOME}/jre/lib/ext/bcprov-ext-jdk15on-158.jar"
      sudo perl -pi.bak -e 's/^(security\.provider\.)([0-9]+)/$1.($2+1)/ge' /etc/java-7-openjdk/security/java.security
      echo "security.provider.1=org.bouncycastle.jce.provider.BouncyCastleProvider" | sudo tee -a /etc/java-7-openjdk/security/java.security
    fi

notifications:
  email:
    on_success: never

sudo: false

script:
  - ./gradlew clean test

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/

Drop oraclejdk7 and start testing openjdk7 on Trusty
Drop oraclejdk7 and start testing openjdk7 on Trusty
