Hi,
we have a multi project build and want to aggregate all jars and distributions from all subprojects to a build directory under the rootProject. The rootProject has no source code and the subprojects are in different languages (Java, JavaScript and possibly others), so we thought to only apply the base and distribution plugin to the rootProject.
How could we aggregate all generated jars with their dependencies, all the files for non compiled languages and their distributions to a rootProject folder and build a distribution from that?
We currently have more than 30 subprojects with more coming, so this should be automatically applied to all subprojects without explicitly naming them.
Project layout:
rootProject
|----> build (directory for aggregation)
|----> common-lib (Java library project)
|----> build
\...
|----> dataGenerator (Java application, dependent on common-lib, generates data)
\...
|----> dataSink (Java application, dependent on common-lib, saves data)
\...
|----> webserver (Java application, dependent on common-lib, queries data from sink)
\...
\----> webclient (JavaScript client application)
build.gradle of root project:
apply plugin: 'base'
apply plugin: 'distribution'