Hi, I have a library that contains just an API Contract written in plain Kotlin, but it is built by Maven. Is there a way to distribute that library in a way that could be used in the KMM project targeting on Android and iOS? Currently, implementing this library in commonMain results in not finding imports
p
Pablichjenkov
07/10/2024, 8:13 PM
I don't think so. You will have to release a .klib instead of a jar/aar
For that you will have to convert the Library project to Gradle and apply the Kotlin multiplatform plugin plus the regular publish plugin. You can still use a maven repo to host the .klibs files
➕ 1
m
mbonnin
07/10/2024, 8:15 PM
+1 there was a nice session at KotlinConf about this and they’re working on it but it’s currently borderline impossible to produce/consume KMP artifacts with anything else than Gradle:
https://youtu.be/vU48FVzBLtc?t=763▾
y
ynsok
07/10/2024, 8:17 PM
Like I thought, So the only solution is to move from Maven to Gradle in this library