How to Publish Your First Kotlin Multiplatform Library
May 04, 2023
13 min
Free
kotlin
library-publishing
sonatype
kdoc
binary-compatibility-validator
multiplatform
kotlin-multiplatform
ci-cd
github-actions
code-coverage
dependency-management
kotlinx-serialization
Description
This presentation walks through the entire process of publishing a Kotlin Multiplatform library, from concept to publication. Using KStore as a case study, the talk explores API evolution, self-management with tools like Kover and binary-compatibility-validator, and automation with GitHub Actions. It covers setting up CI, declaring public APIs, maintaining compatibility, documenting the library with KDoc and Docker, releasing to Sonatype, and ongoing maintenance with code coverage and dependency management tools like Renovate.