title: Execute gradle task on sub projects
body: <p>I have a MultiModule gradle project that I am trying to configure.  </p>
  
  <pre><code>Root
      projA
      projB
      other
          projC
          projD
          projE
          ...
  </code></pre>
  
  <p>What I want to be able to do is have a task in the root build.gradle which will execute the buildJar task in each of the projects in the other directory.</p>
  
  <p>I know I can do </p>
  
  <pre><code>configure(subprojects.findAll {it.name != 'tropicalFish'}) {
      task hello &lt;&lt; { task -&gt; println "$task.project.name"}
  }
  </code></pre>
  
  <p>But this will also get projA and projB,  I want to only run the task on c,d,e...
  Please let me know the best way to achieve this.</p>