In Travis documentation about caching dependencies, it mentions:
The cache’s purpose is to make installing language-specific dependencies easy and fast, so everything related to tools like Bundler, pip, Composer, npm, Gradle, Maven, is what should go into the cache.
Large files that are quick to install but slow to download do not benefit from caching, as they take as long to download from the cache as from the original source:
I am using Gradle in my Java project.
It seems what Gradle caches is those .jar
files, which should fall in the category "quick to install".
So my question is, why Travis recommends caching Gradle dependencies if .jar
files are quick to install but slow to download?
Where does the benefits (in terms of shorter build time) come from?