https://kotlinlang.org logo
Title
n

napperley

05/14/2018, 2:21 AM
Is there a article that covers how to publish a Kotlin multi platform project (as libraries) remotely and locally via Gradle (using Kotlin DSL)?
m

mkobit

05/14/2018, 3:02 PM
definitely not an article, but the kotlinx.coroutines project (groovy build) might be useful for reference since it is multiplatform - https://github.com/Kotlin/kotlinx.coroutines/blob/master/build.gradle
n

napperley

05/14/2018, 10:56 PM
Ended up going with having just about everything build wise in build.gradle.kts files with the exception of publishing (includes uploading to Bintray), which is handled by the publishing.gradle file (applied by all build.gradle.kts files in a Kotlin module).
Publishing can be handled in very simple cases (eg publishing a Kotlin project to a local Maven repo) with the Kotlin DSL, however it falls apart when trying to publish a Kotlin multi-platform project. Looking to file an issue on Kotlin multi-platform project publishing support if there isn't one in the Issue Tracker.