Having the following multi-module-setup:
multi
├── projA
│ └── build.gradle.kts
├── projB
│ └── build.gradle.kts
├── build.gradle.kts
└── settings.gradle.kts
with the following content (abbreviated):
settings.gradle.kts
rootProject.name = "multi" include("projA", "projB")
projA\build.gradle.kts
dependencies { implementation("important-library:1.0") }
projB\build.gradle.kts
dependencies { implementation(project(":projA")) }
Why don't I have access to that importantlibrary:1.0
from projB
?
What works: if I have a class within projA
that uses the library, it works perfectly even if that class is called from a class within projB
(so indirect access works). Directly accessing any class from importantlibrary:1.0
within projB
doesn't work (unresolved reference).
What am I missing here? Or what needs to be set up so that it works?
Gradle version: 5.6.1