I have three gradle subprojects that are all part of a overreaching project. I have a core, a server, and a client library.
Both the server and the client library depend on the core and that is no problem defining the core in the build.gradle dependencies like:
with a line about where to find it in the settings.gradle:
project(":core").projectDir = "$rootDir/../Core" as File
That all works perfectly locally. But trying to publish it with the help of the
maven-publish plugin projects that depend on the Client try to find the core library on maven that is not published seperatly.
Is there a way to bundle the core into the client in a way that projects that consume the client from maven don’t try to search for the dependency and still have the classes included?