title: Gradle settings and dependencies
body: <p>Imagine we have two projects:</p>
  
  <pre><code>root
   |
   |--MP
   |
   |--API
  </code></pre>
  
  <p>In these project <code>MP</code> use classes defined in API. I write <code>settings.gradle</code> file in the root directory:</p>
  
  <pre><code>include 'API', 'MP'
  </code></pre>
  
  <p>and build.gradle in that directory:</p>
  
  <pre><code>subprojects{
      apply plugin : 'java'
  
      repositories{
          mavenCentral()
      }
  
      version = '1.0'
  
      jar{
          manifest{
              attributes 'Gradle': 'Multiproject'
          }
      }
  }
  </code></pre>
  
  <p>But if I don't create the following <code>build.gradle</code> in <code>MP</code>:</p>
  
  <pre><code>dependencies {
      compile project(':API')
  }
  </code></pre>
  
  <p>it won't work. I thought <code>settings.gradle</code> define that we may use <code>API</code> in <code>MP</code> or vice versa during compilation.</p>