0PricingLogin
Kotlin Multiplatform Academy · Lesson

Configure maven-publish for KMP

Publish all target artifacts and the metadata module.

Why Publish at All

Once your shared module is solid, other teams want to reuse it. Publishing turns your code into a versioned artifact they can simply depend on. 📦

Meet maven-publish

The maven-publish Gradle plugin packages your build outputs into artifacts and writes the metadata repositories expect.

plugins {
    kotlin("multiplatform")
    id("maven-publish")
}

All lessons in this course

  1. Configure maven-publish for KMP
  2. Ship an XCFramework for iOS
  3. Versioning & API Stability
  4. Release to Maven Central & SPM
← Back to Kotlin Multiplatform Academy