Cache Gradle dependencies on Travis CI
This commit is contained in:
parent
45c7919265
commit
356e30f446
10
.travis.yml
10
.travis.yml
|
@ -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/
|
Loading…
Reference in New Issue