The Gradle cache defaults to “$USER_HOME/.gradle/caches”, but it can be defined to be located elsewhere. I found it a practical thing to have it somewhere relative to some project directory. So I defined it in “gradle.properties” like this:
This works fine when using the Gradle cmd line; Gradle then puts downloaded 3rd party jars somewhere below this directory.
My intention was, that this was respected by the STS Eclipse plugin, so that we can have relative path names to these 3rd party jars within Eclipse “.classpath”. But obviousley, the STS plugin does not know of this property and it’s value. So, when Eclipse IDE is initalized, it first does another download of all 3rd party jars into Gradle’s default cache location.
Yes, it definitely works - because I found there everything the “.classfile” for Eclipse need to resolve external dependencies. I cannot remember where I read that I can do this.
BTW: I created this topic because Adam told me so in issues.gradle.org/Gradle-2756, and also because I’ve found an issue in STS-jira.
It would be interesting to know what versions of Eclipse, STS Gradle plugin, and Gradle you use. Also if you can add a link to STS JIRA issue I’d be interested.