maven - Kotlin Multiplatform publishToMavenLocal does not include iOS targets on CI (but works locally) - Stack Overflow

admin2025-04-04  0

I'm working on a Kotlin Multiplatform Mobile (KMM) project where I publish shared modules to a local or remote Maven repository. My module targets:

  • android
  • jvm
  • iosX64
  • iosArm64
  • iosSimulatorArm64

Locally, running the following command on my MacBook:

./gradlew publishToMavenLocal

generates the correct output structure in .m2/repository/, including the iOS-specific folders:

network-iosarm64/
network-iosx64/
network-iossimulatorarm64/

However, when I run this on Bamboo CI, using the same Gradle project and the same command:

./gradlew publishToMavenLocal -Dmaven.repo.local=$SCRIPT_DIR/repository

...I only see Android and JVM outputs, like:

network/
network-android/

But no iOS artifacts are generated at all.

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1743749463a217399.html

最新回复(0)