language: groovy
before_cache:
- rm -f $HOME/.gradle/caches/*
cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/

# Using build matrix support to build the sub-projects
env:
  - TEST_DIR=strict-version-matcher-plugin
  - TEST_DIR=google-services-plugin

script: cd $TEST_DIR && gradle assemble && gradle test

language: groovy
jdk: oraclejdk8
dist: trusty

# See https://docs.travis-ci.com/user/languages/groovy/#gradle-caching
before_cache:
- rm -f $HOME/.gradle/caches/*
cache:
  directories:
  - $HOME/.gradle/caches/
  - $HOME/.gradle/wrapper/

# Using build matrix support to build the sub-projects
env:
  - TEST_DIR=strict-version-matcher-plugin
  - TEST_DIR=google-services-plugin
  - TEST_DIR=oss-licenses-plugin

script: cd $TEST_DIR && ./gradlew test

Enable CI on OSS Licenses plugin
Enable CI on OSS Licenses plugin

This was disabled in 074d32, and I'm not sure why, but it might be
because the oss-licenses-plugin only seems to work with JDK 8, so maybe
that just was not the default.
