language: android
android:
  components:
    - tools
    - platform-tools
    - build-tools-28.0.3
    - android-28
jdk:
  - openjdk8
  - openjdk11

env:
  - GRADLE_VERSION=5.2.1
  - GRADLE_VERSION=5.3.1
  - GRADLE_VERSION=5.4.1

install: true
script: ./gradlew --scan build -Ptest.gradle-version=$GRADLE_VERSION

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/

language: android
dist: trusty
android:
  components:
    - tools
    - platform-tools
    - build-tools-28.0.3
    - android-28
jdk:
  - openjdk8
  - openjdk11

env:
  - GRADLE_VERSION=5.2.1
  - GRADLE_VERSION=5.3.1
  - GRADLE_VERSION=5.4.1

install: true
script: ./gradlew --scan build -Ptest.gradle-version=$GRADLE_VERSION

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/

Use dist:trusty on Travis, as openjdk8 cannot be installed on xenial for now
Use dist:trusty on Travis, as openjdk8 cannot be installed on xenial for now
