title: In the settings.gradle file how can i dynamically include all the subprojects?
body: <p>As <strong>settings.gradle</strong> file runs on groovy is it possible to write a script which will include all the subprojects which contains for example <strong>build.gradle</strong> files inside it.</p>
  <p>I tried using this</p>
  <pre><code>new File('.').eachFileRecurse {
      if (it.name.endsWith(&quot;build.gradle&quot;)) {
          //include it
          println &quot;Processing file ${it}&quot;
      }
  }
  </code></pre>
  <p>but can't figure out how it will work. I mean how will i include all my subprojects</p>
  <p>I don't want to hardcode include 'x', include 'y' in the settings.gradle file</p>