You’ll want to create a fat/uber JAR. There are plenty of tutorials out there, but a common approach is to use the Shadow plugin: https://imperceptiblethoughts.com/shadow/
You would configure the Shadow plugin to have
base to be embedded/included in
b without having to publish them.
CLICK HERE to find out more related problems solutions.