title: The import org.mockito.Mock cannot be found
body: <p>I am experiencing a problem I hope you can help with.</p>
  
  <p>I want to use Mockito in my Spring Boot w/Gradle project, but STS cannot resolve the dependancy.</p>
  
  <p>I have the following in my <code>build.gradle</code> file;</p>
  
  <pre><code>repositories { jcenter() }
  dependencies { testCompile('org.mockito:mockito-core:1.+') }
  </code></pre>
  
  <p>When I do a <code>./gradlew --info build</code> I can see that it is resolving Mockito:</p>
  
  <pre><code>Resolved versions: {org.mockito:mockito-core=1.+}
  Using version '1.+' for dependency 'org.mockito:mockito-core:1.+'
  Using version '1.+' for dependency 'org.mockito:mockito-core:1.10.19'
  </code></pre>
  
  <p>After a <code>./gradlew cleanEclipse eclipse</code> it is in my STS Project's Build Path</p>
  
  <p><a href="https://i.stack.imgur.com/UpkVl.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/UpkVl.png" alt="In Build Path"></a></p>
  
  <p>My Code File is showing the following message:</p>
  
  <p><a href="https://i.stack.imgur.com/wdeip.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wdeip.png" alt="cannot resolve Mockito"></a></p>
  
  <p>I have another project, setup in exactly the same way and it is working fine.</p>
  
  <p>Please help me out guys, Luke.</p>