title: Is there a way to split/factor out common parts of Gradle build
body: <p>We have several independent builds (each independent build is a multi-project build). The main build scripts have become quite big as we have a set of common tasks reused by subprojects. There is also a lot of repetition between independent builds. What we are looking for is:</p>
  <ol>
  <li>A way to split the main build file
  into smaller files</li>
  <li>A way to reuse some parts of the
  build in other independent builds</li>
  </ol>
  <p>What is the best way to achieve this in Gradle?</p>