Kotlin Multiplatform Library
- Registering a Sonatype account as described here: https://dev.to/kotlin/how-to-build-and-publish-a-kotlin-multiplatform-library-going-public-4a8k
- Add developer id, name, email and the project url to
/convention-plugins/src/main/kotlin/convention.publication.gradle.kts
- Add the secrets to
local.properties
:
signing.keyId=...
signing.password=...
signing.secretKeyRingFile=...
ossrhUsername=...
ossrhPassword=...
- Run
./gradlew :dodo:publishAllPublicationsToSonatypeRepository
- Run
./gradlew :kLibrary:assembleRelease
- Output:
/kLibrary/build/outputs/aar/kLibrary-release.aar
- Run
./gradlew :kLibrary:linkReleaseFrameworkIosArm64
- Output:
/kLibrary/build/bin/iosArm64/releaseFramework/kLibrary.framework