Cache Gradle dependencies on Travis CI

This commit is contained in:
Daniel Wolf 2019-08-03 21:46:02 +02:00
parent 45c7919265
commit 356e30f446
1 changed files with 10 additions and 0 deletions

View File

@ -21,3 +21,13 @@ deploy:
tag_name: $TRAVIS_TAG tag_name: $TRAVIS_TAG
name: $TRAVIS_COMMIT_MESSAGE name: $TRAVIS_COMMIT_MESSAGE
draft: true draft: true
# Enable caching of dependencies.
# See https://guides.gradle.org/executing-gradle-builds-on-travisci/#enable_caching_of_downloaded_artifacts
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/