gradle build successful but no dependencies were downloaded
<p>here is my build.gradle </p>

<pre><code>apply plugin: 'java'

repositories {
    mavenCentral()
    mavenLocal()
}

dependencies {
    compile 'org.slf4j:slf4j-api:1.7.13'
    compile "mysql:mysql-connector-java:5.1.38"
    compile "org.springframework:spring-webmvc:4.2.4.RELEASE"
    compile "org.springframework:spring-orm:4.2.4.RELEASE"
    testCompile 'junit:junit:4.12'
}
</code></pre>

<p>and when i run "gradle eclipse"
it just says "Task 'eclipse' not found in root project 'WebPrimary'"</p>

<p>anyone can help? thanks a lot!!</p>