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.