I'm trying to publish a multi-module library but I only want to publish only want one module as follows:
-module main
-module data
-module domain
Sample app should implement only main module (as this is the gate of the library)
BUT main module depends on data and domain modules
At first I was using implementation (project(":data/domain"))
implementation(project(":domain"))
implementation(project(":data"))
but when I tried to publish the main module (maven local for now) and use the main artifact in the sample app I got the error message that data and domain dependencies could not be found.
I had to publish data and domain for it to be found despite declaring them as implementation project
What am I doing wrong? I can't believe we need to publish all of the modules of a library for the main module to be usable by an app...
