Hello guys, can anyone help me with this ? <https:...
# multiplatform
k
r
I would place
mavenLocal()
on the first place, run
publishToMavenLocal
and then check the created artifacts at maven local repository location. https://stackoverflow.com/questions/21048958/where-is-maven-local-repository
k
I’ve already ran
publishToMavenLocal
in the KMM library project and the library is successfully published in
~/.m2
. Additionally, I’m already using the published library in building another KMM library
m
There are 2
repositories{}
blocks. One for the buildscript, the other one for the regular dependencies. Make sure you put
mavenLocal()
in the correct one
d
check here: https://kotlinlang.org/docs/mpp-publish-lib.html#publish-an-android-library You need to add below config to have Android artifacts published.
Copy code
kotlin {
        android {
            publishLibraryVariants("release", "debug")
        }
    }