Hi there, does anyone have experience using mavenL...
# multiplatform
b
Hi there, does anyone have experience using mavenLocal() with kmm? I made a kmm library named
multiplatform
, and performed publishToMavenLocal. The jar files look to be in my local path .m2 path. So I'm not too sure why I'm getting this error when importing:
Copy code
- file:/C:/Users/bchadwi/.m2/repository/me/bchadwi/multiplatform-android/1.0.2/multiplatform-android-1.0.2.pom
     Required by:
         project :app > me.bchadwi:multiplatform:1.0.2
Specifically, why gradle is looking for a
multiplatform-android
?
b
Because your multiplatform.jar file is just a metadata to tell gradle where to get platform specific artefacts (multiplatform-android.aar, multiplatform-iosX64.klib, etc...)
b
Gotcha so then, would it be possible to publish the multiplatform-android.aar from my multiplatform build.gradle.kts?
b
Should happen automatically if you've configured your targets properly
r
You need to explicitly enable Android publishing, so make sure you've done that. See https://kotlinlang.org/docs/mpp-publish-lib.html#publish-an-android-library
👍 2
b
Thank you both, this helps a lot