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 :shared:assembleRelease - Output:
/shared/build/outputs/aar/shared-release.aar
- Run
./gradlew :shared:jvmJar - Output:
/shared/build/libs/shared-jvm-1.0.jar
- Run
./gradlew :shared:linkReleaseFrameworkIosArm64 - Output:
/shared/build/bin/iosArm64/releaseFramework/shared.framework
- Run
./gradlew :shared:jsBrowserProductionWebpack - Output:
/shared/build/dist/js/productionExecutable/shared.js
- Run
./gradlew :shared:linkReleaseFrameworkMacosArm64 - Output:
/shared/build/bin/macosArm64/releaseFramework/shared.framework