title: Excluding a dependency from a dependency
body: <p>I'm working with gradle and although I've been using <code>exclude</code> with success to remove transitive dependencies I don't want, I can't seem to work out how to solve the following.</p>
  
  <p>Let's assume I have the following dependencies:</p>
  
  <pre><code>org.library:useful:2.0.0
  +--org.library:logging:1.5
  +--org.another-library:tools:1.9
     +--org.library:logging:1.4
  </code></pre>
  
  <p>As you can see I have a version conflict between logging 1.5 and logging 1.4.  In my configuration I know that I can use exclude do the following:</p>
  
  <pre><code>config('org.library:useful:2.0.0') {
     exclude(group: 'org.library', module: 'logging')
  }
  </code></pre>
  
  <p>But how do I say "<code>exclude logging 1.4"</code> that doesn't come from anything I depend on (in this example it comes from <code>org.another-library:tools:1.9</code>)?</p>