It seems, in the case of gradle subprojects, the bootJar>layered specs is not able to differentiate the subprojects from the other dependencies.
bootJar>layered
Here is t