KMMBridgePublishing

Publishing

The details of specific configurations are covered in other sections, but there are general details you should be aware of.

KMMBridge defines several tasks related to publishing, but they aren’t needed for day-to-day development. SPM-related Gradle tasks specifically may run local git operations as part of their configuration. While these operations are read-only, they serve no purpose if you aren’t publishing.

As a result, KMMBridge does not register any publishing-related tasks unless the Gradle property ENABLE_PUBLISHING is set to true. This is generally done on the command line:

./gradlew kmmBridgePublish -PENABLE_PUBLISHING=true

If you are regularly publishing from your local machine, you can set that parameter in gradle.properties:

ENABLE_PUBLISHING=true

The impact on Gradle configuration is minimal, so enabling the publishing tasks isn’t an issue.