Hi! How should
.travis.yml caching config look like, so that Travis does not repack caches after each and every build?
Currently Travis docs suggest to do:
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/
(the rm bits most recently updated by me in https://github.com/travis-ci/docs-travis-ci-com/pull/611).
However, with Gradle 4.0 I see thrashing again because of these two files:
Could someone with better understanding of Gradle internals comment, what exactly should be cached on CI (that is, which files almost never change)?