I have a Gradle 6.5 project bar
that has several subprojects and uses split packages, which I cannot remove in the current configuration.
I want to package an additional bar-all
artifact that declares an automatic module name via MANIFEST.MF
Automatic-Module-Name: com.foo.bar
and contains all the classes from all the subprojects. The main purpose of this additional artifact is for use in modular applications and to avoid the split package problem.
I suspect I need to take the build outputs of the other subprojects and reuse them in a custom Jar task within bar-all
but can't find a good example of this.