title: Does gradle project with dependency to another project get libraries?
body: <p>I have two projects:</p>
  
  <p>ProjectA makes use of ProjectB</p>
  
  <p>ProjectA:</p>
  
  <p>-- Settings.graddle:</p>
  
  <pre><code>include ':projectB'
  </code></pre>
  
  <p>-- build.gradle:</p>
  
  <pre><code>dependencies {
    compile project(':projectB')
  }
  </code></pre>
  
  <p>ProjectB:</p>
  
  <p>-- build.gradle:</p>
  
  <pre><code>dependencies {
    compile group: 'org.modelmapper.extensions', name: 'modelmapper-jackson', version: '1.1.1'
  }
  </code></pre>
  
  <p>This imports into ProjectB the modelmapper-jackson lib. (Expected behaviour)</p>
  
  <p>It <strong>also</strong> imports modelmapper-jackson lib into <strong>ProjectA</strong>.</p>
  
  <p>It might be this is the behaviour I want, <strong>but</strong>:</p>
  
  <p>I would like to understand how to define what it is imported and what it is not, since in the future I might have more projects, and do not want all of them to have all the libraries</p>
  
  <p>Is there anything in gradle I missed?</p>