https://kotlinlang.org logo
#multiplatform
Title
# multiplatform
a

ansman

09/14/2019, 2:38 AM
I’m trying to find an example how to to set up maven publishing for MPP. The offical docs has bits and pieces but it’d like to see the whole setup.
a

alex009

09/14/2019, 11:36 AM
Add plugin
maven-publish
, add publishing configuration like here https://github.com/icerockdev/moko-resources/blob/99f34ceec25a906691d455d81076fac27a5ffa54/resources/build.gradle.kts#L35 and run
publishAllTo***
. Kotlin multiplatform plugin configure all other. But for Android target you must enable publishVariants... This setting in my library by plugin - here https://github.com/icerockdev/mobile-multiplatform-gradle-plugin/blob/3514bbc0013405662e232b1c398587a92d199b2e/src/main/kotlin/dev/icerock/gradle/MobileMultiPlatformPlugin.kt#L38
a

ansman

09/14/2019, 5:59 PM
Thanks! Where do you configure your POM?