Hi guys I'm new at Kotlin and KMM I'm working on a...
# library-development
m
Hi guys I'm new at Kotlin and KMM I'm working on a module used this template https://github.com/terrakok/kmp-web-wizard i know how to publish it on maven and how to export platform specific library. the question is: is there any path to export a kmm libaray and use it in another kmm project without publish in Maven? like when you import an aar and jar dependency in an android project
m
publish to mavenLocal:
Copy code
./gradlew publisToMavenLocal
And add
mavenLocal()
as a repo in your consumer build
There are so many files needed for KMP support, I don't think there's an encapsulation format that bundles everything together. Plus you need the Gradle metadata so all in all, a maven publication is probably what you're looking for.
m
Thank you, I will check it out.
c
If you want to deploy both projects together, you can also use!
Copy code
// settings.gradle.kts
includeBuild("../path/to/library")
This will link both projects together, such that if you make a modification in the library, the other project will automatically see the changes.