env:
        - DEP_ENV=devtest

before_install:
 - chmod +x gradlew
 
language: java
jdk:
        - oraclejdk8

branches:
  only:
  - devtest
  - master


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/

script: ./gradlew build

env:
        - DEP_ENV=devtest

before_install:
 - chmod +x gradlew
 
language: java
jdk:
        - oraclejdk8

addons:
  apt:
    packages:
      - oracle-java8-installer

branches:
  only:
  - devtest
  - master


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/

script: ./gradlew build

Use latest java 8 jdk
Use latest java 8 jdk
