title: Intellij can't find commons.dbcp2
body: <p>I have a problem which drives me insane, since it should work.</p>
  
  <p>I have compiled dbcp dependency in my gradle file</p>
  
  <pre><code>    compile group: 'org.apache.commons', name: 'commons-dbcp2', version: '2.1.1'
  </code></pre>
  
  <p>still, it can't resolve if i refer to it like this:</p>
  
  <pre><code>import org.apache.commons.dbcp2.BasicDataSource;
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/EEANL.png" rel="nofollow"><img src="https://i.stack.imgur.com/EEANL.png" alt="enter image description here"></a></p>
  
  <p>Any idea? (using intellij)</p>