Compile Successful; can't find dependency in local repository?

gradle compile works for the following script

apply plugin: 'groovy'
apply plugin: 'eclipse-wtp'
  dependencies {
    compile 'org.codehaus.groovy:groovy-all:2.4.1'

however I can not find the above jar file in my local maven repository. I have not altered my maven settings.xml so I assumed it would be in .m2\repository but it is not. How can I find out where it is finding the .jar file. I have groovy-2.4.1 installed on my C: drive. Does it check there before trying to find it in a maven repository.

The only repository you have configured is maven central, so that is the only place Gradle is going to look. Gradle does not cache dependencies in maven local and does not look in maven local for dependencies unless explicitly told to do so by adding ‘mavenLocal()’ to the ‘repositories { }’ block.

But the compile worked… It must have downloaded from Maven Central or used the one on my local c: drive or something in eclipse. I downloaded the grade-eclipse plugin.

It downloaded it form maven central because you have added it as a repository.

repositories {



Sorry, I did not know that Gradle has its own cache of dependencies.