language: java

script:
- gradle check
- gradle integrationTest

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/

services:
  - mongodb
language: java

jdk:
  - oraclejdk8

script:
- ./gradlew check
- ./gradlew integrationTest

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/

services:
  - mongodb
Set JDK8 and gradlew as defaults.
Set JDK8 and gradlew as defaults.
