Skip to content
Permalink
Browse files

Exclude everything in .gradle/cache but modules-2

The other folders have contents that may change every run, and which ones
change is dependent on the gradle version. The other folders also don't seem to
have much that's useful. The plugin-resolution removal is also then doubly
unnecessary, as it is 1) not in modules-2 and 2) I don't see it being created
any more in Gradle 5.x.

Previously it was mirroring the Gradle documentation[1], so it is now clear the
docs are out-of-date.

1. https://docs.travis-ci.com/user/languages/java/#caching
  • Loading branch information
ejona86 committed Dec 30, 2019
1 parent a85343e commit ba81fccd869bba276fd1ba53dc795fb0e7715ba6
Showing with 1 addition and 2 deletions.
  1. +1 −2 .travis.yml
@@ -8,9 +8,8 @@ notifications:

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/caches/modules-2/
- $HOME/.gradle/wrapper/

0 comments on commit ba81fcc

Please sign in to comment.
You can’t perform that action at this time.