I have 2 multiplatform libraries where library A uses code from Library B (logging). When I add a dependency in library A's build.gradle.kts in the normal fashion:
Copy code
dependencies {
api(project(":logging"))
}
The library B (logging) code is not available to be used inside code in Library A. I have seen someone say that I have to publish Library B to a local maven repository but that is a pain to do especially when both libraries are under heavy development.
I am using 1.4.21 kotlin multiplatform plugin. Has anybody gotten this to work?
s
savrov
01/10/2021, 2:51 AM
as far i know, to use
project(":logging")
, a logging lib should be a module inside your project. if it is a separate lib, u have to use a local publishing
r
Reed Ellsworth
01/10/2021, 2:54 AM
It is a module in the same project i.e. both the logging library and the other library that depends on logging are included in the settings.gradle