svenjacobs
09/22/2023, 12:02 PMimplementation("io.github.reactivecircus.cache4k:cache4k:x.y.z")
it actually needs to load cache4k-jvm
. Is it Gradle, the Kotlin Gradle plugin or the Android Gradle plugin which is responsible for this and is there a specific version requirement of these build components so that it works with KMP libraries? Or in other words: When did this start to work? 🙂Casey Brooks
09/22/2023, 3:10 PM.pom
file which describes a libraries dependencies and some other basic info. But Gradle also publishes an additional .module
JSON file, which is Gradle Module Metadata.
The KMP Gradle plugin was one of the first to adopt this module metadata to specify constraints of things like MPP target or JDK version. Gradle considers module metadata published by the Kotlin plugin for matching the “common” coordinates to the target-specific artifacts-jvm
suffix, since Gradle should still be looking at the module metadata when resolving those dependencies.
I think some of those libraries do explicitly specify it for historical reasons, because earlier versions of AGP didn’t consider the module metadata or something like that. I’m not fully sure about this, though.svenjacobs
09/22/2023, 3:19 PMCasey Brooks
09/22/2023, 3:22 PM-jvm
suffix