Given a project structure:
rootProject
aggregatingSubProject
subA
subB
subC
How do I run the package
task for aggregatingSubProject
and all its aggregated projects, without specifying them by hand?
So far I can only have subA
and subB
built when doing package
in the rootProject
- regardless if I put .aggregate(subA, subB)
in aggregatingProject
's build.sbt
.
I need the rootProject
to define common settings for the build and I want to build multiple projects (some aggregating other projects, like aggregatingSubProject
does) in a single build.
EDIT: I need to do this without specifying all the sub-sub-projects in the root build.sbt. I'd like to define subA and subB in aggregatingSubProject/build.sbt.
Using sbt 0.13.16
.