title: Gradle dependencies not working in IntelliJ
body: <p>I'm working on an intelliJ project with my friends where we use MongoDB &amp; Morphia. We have the mongo stuff as a dependency in Gradle, as you can see here:</p>
  
  <p><a href="https://i.stack.imgur.com/Fjf9M.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Fjf9M.png" alt="enter image description here"></a></p>
  
  <p>I didn't set this stuff up, I cloned it from a repository. But my other friends have gotten this to work - all on Windows, OSX, and Linux. And only one of them set it up.</p>
  
  <p>The issue is that it doesn't know what Morphia / MongoDB is (for example, the imports don't work).</p>
  
  <p>What I have done:</p>
  
  <ul>
  <li>Resync Gradle</li>
  <li>Run the Gradle.build file</li>
  <li>Reclone the project</li>
  <li>Invalidate caching and restart</li>
  </ul>
  
  <p>And it still doesn't know what MongoDB is. So then I tried to get everything working in a VM of Ubuntu, but I have a similar issue, except it doesn't list any of the dependencies you see above.</p>
  
  <p>Anyone have any ideas on what I need to do on my end to get this working?</p>
  
  <p>Here is the Build.gradle, minus the first line where we define the group (it contains my friend's name).</p>
  
  <p><a href="https://i.stack.imgur.com/Y3v7Z.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/Y3v7Z.png" alt="enter image description here"></a> </p>
  
  <p>Possibly something to do with the issue: They complain that some of the dependecies are "invalid".</p>
  
  <p><a href="https://i.stack.imgur.com/a0jDa.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/a0jDa.png" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/T2YpI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/T2YpI.png" alt="enter image description here"></a></p>