Gradle Dependencies not recognized in Intellij
<p>I'm working on a Spring Boot Application using Gradle as a dependency management system or whatever.</p>

<p>After adding a couple of dependencies to the build script and rebuilding the project, I would expect the build to have added those dependencies to the project. And yet, it does not. Cannot import those libraries. What step am I missing?? I am a node.js developer and am used to just running an <code>npm install</code> to import dependencies.</p>

<p>Here are the dependencies:</p>

<pre><code>dependencies {
    compile('org.mongodb:mongodb-driver:3.2.2')
    compile('org.springframework.boot:spring-boot-starter-data-mongodb')
}
</code></pre>

<p>Not that it matters, since they were not added to the project, but here are the eventual import statements:</p>

<pre><code>import org.mongodb.MongoClient;
import org.springframework.data.mongodb.core.MongoTemplate;
</code></pre>