language: java

jdk:
  - oraclejdk7

before_install:
  - chmod +x gradlew
  - openssl aes-256-cbc -K $encrypted_16408b1fb58f_key -iv $encrypted_16408b1fb58f_iv -in ./datastore/src/test/resources/spine-dev-62685282c0b9.json.enc -out ./datastore/src/test/resources/spine-dev-62685282c0b9.json -d

script:
  - ./gradlew build codeCoverageReport --debug

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - chmod +x ./script/publish_artifacts.sh
  - ./script/publish_artifacts.sh

language: java

jdk:
  - oraclejdk8

before_install:
  - chmod +x gradlew
  - openssl aes-256-cbc -K $encrypted_16408b1fb58f_key -iv $encrypted_16408b1fb58f_iv -in ./datastore/src/test/resources/spine-dev-62685282c0b9.json.enc -out ./datastore/src/test/resources/spine-dev-62685282c0b9.json -d

script:
  - ./gradlew build codeCoverageReport --debug

after_success:
  - bash <(curl -s https://codecov.io/bash)
  - chmod +x ./script/publish_artifacts.sh
  - ./script/publish_artifacts.sh

Use JDK 8 on Travis.
Use JDK 8 on Travis.

(cherry picked from commit 51af3cf)
