title: Invoking custom tasks in gradle
body: <p>I have a project with lot of sub-projects. Each sub project has its own build.gradle which contains the different tasks that needs to be run for that sub-project.</p>
  
  <p>Some of the sub projects have their own specific tasks, not found in other sub projects.</p>
  
  <p>Lets say sub project A has <code>taskA</code> and <code>taskB</code> as its specific tasks.</p>
  
  <p>Issuing <code>gradle clean build taskA taskB</code> from the project A's directory invokes the tasks: <code>taskA</code>, <code>taskB</code>.</p>
  
  <p>How can I modify the main <code>build.gradle</code> to invoke <code>taskA</code> and <code>taskB</code> when compiling sub-project A?</p>