I have published a library to our maven (tried mav...
# multiplatform
d
I have published a library to our maven (tried maven local too), and it has one transitive dependency. The consuming project does not see this transitive dependency and fails to compile. Although I can see that both "library.pom" and "library-jvm.pom" list this library under
<dependencies>
section. Does anyone know why this can happen and how to fix this? Adding the dependency directly to a consuming project works, but I'd like to avoid requiring users of my library do that manually.
m
Usually, multiplatform project use the Gradle
.module
format to declare their dependencies
So what you're seeing in
library.pom
might not be used at all. Do you have a
library.module
next to it?
Besides that, the usual suspect for this kind of stuff is that the dependency is declared as
implementation
and not
api
d
checked that. 1. Yep, I have
.module
and it has
depencency
json key which lists this library too 2. Library declares depencency as
api
, I figured that too and republished with
api
Hmm. After resetting caches and restarting daemons and ide for the 3rd time for some reason it started to work.