title: How to generate all-projects-in-one Gradle project?
body: <p>I have a gradle monolithic project with too many dependencies.</p>
  <p>I'd like to explode it into many sub-projects and publish all sub-projects (build + sources + javadoc) + an extra project being the merge of all sub-projects.</p>
  <p>This extra project should be like a virtual artifact with all my projects in a single jar like it is today because I don't want a too big change for my users.</p>
  <p>The jar must not include dependencies (it is not an uber-jar) but the resulted pom.xml must contain the dependencies of all sub-projects (the generated pom.xml of the maven artifact must contain all dependencies).</p>
  <p>The virtual artifact will include the merge of javadoc and sources too in order to respect Maven Central conventions.</p>
  <p>Current state:</p>
  <ul>
  <li>Project Main, generate
  <ul>
  <li>pom.xml</li>
  <li>main.jar</li>
  <li>main-sources.jar</li>
  <li>main-javadoc.jar</li>
  </ul>
  </li>
  </ul>
  <p>Expected state:</p>
  <ul>
  <li>Subproject A, generate
  <ul>
  <li>A-pom.xml</li>
  <li>A.jar</li>
  <li>A-sources.jar</li>
  <li>A-javadoc.jar</li>
  </ul>
  </li>
  <li>Subproject B, generate
  <ul>
  <li>B-pom.xml</li>
  <li>B.jar</li>
  <li>B-sources.jar</li>
  <li>B-javadoc.jar</li>
  </ul>
  </li>
  <li><strong>virtal</strong>-Project Main, generate
  <ul>
  <li>pom.xml=A-pom.xml+B-pom.xml</li>
  <li>main.jar=A.jar+B.jar</li>
  <li>main-sources.jar=A-sources.jar+B-sources.jar</li>
  <li>main-javadoc.jar=A-javadoc.jar+B-javadoc.jar</li>
  </ul>
  </li>
  </ul>
  <p>How can I manage it?</p>