When I gradle install my multiproject, the JAR it puts into ~/.m2 doesn’t contain any of the classes built by the project/subprojects. I expected the Maven plugin to configure jar/install to do this, but no luck so far.
Could someone offer an example build.gradle configuration such that gradle install behaves more like mvn install, jar-ing ALL class files and inserting that into ~/.m2 ?
How can I alter this to integrate shadowJar, so that it’s not just a multiproject jar, but a multiproject jar with all the subproject’s dependencies as well? zipTree can’t seem to find the *-all.jars.
The mmJar trick works relatively well for multiprojects, except even it can’t resolve gradle’s failure, except the mere existence of a rootProject makes gradle install create an empty (no classes) jar in .m2. The workaround for that is to not use a rootProject, instead placing such classes in a child project like “…-common”.
So the mmJar trick works as long as you avoid using a rootProject (e.g. don’t use ~/Desktop/yourproject/src/…).