I have a simple multi module structure
-
app module
-
presentation module (Android library Module)
-
domain module (Kotlin library Module)
-
data module (Android library Module)
The dependency graph I want to achieve is: presentation -> domain -> data
Inside the Presentation build.gradle:
implementation(projects.domain)
Inside the Domain build.gradle:
implementation(projects.data)
And I keep getting these gradle sync error:
:domain:main: Could not resolve project :data.
Required by:
project :domain
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
and this
:domain:test: Could not resolve project :data.
Required by:
project :domain
Possible solution:
- Declare repository providing the artifact, see the documentation at https://docs.gradle.org/current/userguide/declaring_repositories.html
If I remove this implementation(projects.data)
line from the build.gradle it build but I want to have a dependency on the data module