title: What's the difference between buildscript and allprojects in build.gradle?
body: <p>On a multi-project gradle build, can someone tell me what exactly is the difference between the "allprojects" section and the "buildscript" one?  Both have a <code>repositories</code> and <code>dependencies</code> task. Is <code>allprojects</code> for my project? What about <code>buildscript</code>?</p>
  
  <pre><code>buildscript {  
       repositories {
           ...
       }
       dependencies {
           ...
       }
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>allprojects(subprojects) { 
       repositories {
           ...
       }
       dependencies {
           ...
       }
  }
  </code></pre>