From 92ec88f1fc6712c1315959cc073bdec68add08e8 Mon Sep 17 00:00:00 2001 From: Chris Beams Date: Thu, 22 Mar 2018 11:26:55 +0100 Subject: [PATCH] Enable Travis CI Gradle dependency caching Per https://docs.travis-ci.com/user/languages/java/#Caching --- .travis.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.travis.yml b/.travis.yml index ed2abf26c0..1c83f08631 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,12 @@ language: java jdk: oraclejdk8 +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/ notifications: slack: on_success: change