language: java

jdk:
  - openjdk8

sudo: false

cache:
  directories:
  - $HOME/.m2
  - $HOME/.gradle

install: /bin/true

script: ./gradlew wrapper --gradle-version 4.6 clean test
language: java

jdk:
  - openjdk8

sudo: false

cache:
  directories:
  - $HOME/.m2
  - $HOME/.gradle

install: /bin/true

script: ./gradlew test

Simplify how Travis calls Gradle
Simplify how Travis calls Gradle

There is no need to call the wrapper task with a version here as we
already use the wrapper script, and that one will bootstrap the Gradle
version as specified in gradle/wrapper/gradle-wrapper.properties.

Also, there is no need to call the clean task as each Travis build
starts from scratch.
