title: What is the difference between allprojects and subprojects
body: <p>On a multi-project gradle build, can someone tell me what exactly is the difference between the "allprojects" section and the "subprojects" one?  Just the parent directory?  Does anyone use both?  If so, do you have general rules that determines what typically is put in each one?</p>
  
  <p>Related question: what is the difference between the two syntaxes (really for allprojects AND subprojects):</p>
  
  <pre><code>subprojects {  ...
  }
  </code></pre>
  
  <p>and </p>
  
  <pre><code>configure(subprojects) { ...
  }
  </code></pre>
  
  <p>When would you one over the other?</p>