Where does Gradle store downloaded jars on the local file system
gradle
Solution
Gradle caches artifacts in `USER_HOME/.gradle` folder. The compiled scripts are usually in the `.gradle` folder 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:
apply plugin: 'java'
repositories {
mavenCentral()
}
dependencies {
compile 'com.google.guava:guava:12.0'
}
task showMeCache doLast() {
configurations.compileClasspath.each { println it }
}
Now if you run `gradle showMeCache` it should download the dependencies into the cache and print the full path.
Problem
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.