title: Internal dependencies class qualified name conflict
body: <p>There are two dependency libraries in my Gradle project: </p>
  
  <ul>
  <li>OLD: full util lib</li>
  <li>NEW: only db lib (fixed lib)</li>
  </ul>
  
  <p>which both holds same db connection classes including package eg.: <em>net.mycompany.common.dbsq.DBConnector()</em>.</p>
  
  <p>What I need is to ensure use of db connection classes from NEW, but keeping OLD (can be without db classes) as dependency due to rest of needed utils, that are not available in NEW. </p>
  
  <p>Is there possibility to exclude/include just particular classes or packages of dependency? Or ensure 'overriding' of same named classes? Unfortunately it is not question of transitive dependency, but name conflicting db connection classes are in both. Also I cant have any impact on content of dependencies.</p>
  
  <p>With specifying both as compile dependencies, IDE (Idea) uses classes from NEW, but running .war in weblogic server uses db connection classes from OLD.  </p>
  
  <p>Any ideas? I can give more specific description, but this is quite general question. </p>