How does Gradle store downloaded jar files on the local file system? Maven stores them in the .m2 directory under USER_HOME, but where does Gradle store them? I checked the .gradle folder there, but saw only compiled scripts.
How does Gradle store downloaded jar files on the local file system? Maven stores
Share
Gradle caches artifacts in
USER_HOME/.gradlefolder. The compiled scripts are usually in the.gradlefolder in your project folder.If you can’t find the cache, maybe it’s because you have not cached any artifacts yet. You can always see where Gradle has cached artifacts with a simple script:
Now if you run
gradle showMeCacheit should download the dependencies into the cache and print the full path.