Gradle offline cache dependencies


(Ali Hamie) #1

I am working in an environment where there is no Internet connection . I keep getting the error no cached version of
build tools 2.1.0. However I did change the gradle.properties file to point to the local version of gradle distributions zip file but I keep getting that same error.

I know that the dependencies are cached in the directory $HOME/.gradle/caches. Is there any way I can manually download a dependency lets say a jar file and cache it manually ? How would I put a dependency in the cache ?