Publishing to Maven Central
Repository: Maven Central via Sonatype OSSRH
Version Management
Versions are centralized in buildSrc/src/main/kotlin/Versions.kt — all modules share the same version. Dependency versions live in the gradle/libs.versions.toml version catalog.
Artifacts published
| Module | Group | Artifact ID |
|---|---|---|
| Foundation | com.reown | foundation |
| Core | com.reown | android-core |
| Sign | com.reown | sign |
| Notify | com.reown | notify |
| WalletKit | com.reown | walletkit |
| AppKit | com.reown | appkit |
| Modal Core | com.reown | modal-core |
| BOM | com.reown | android-bom |
Publishing commands
# Publish to staging
./gradlew publishToSonatype
# Close and release staging repository
./gradlew closeAndReleaseSonatypeStagingRepository
# Bump versions (custom task)
./gradlew bumpVersion -PnewVersion=1.6.0
Required environment variables
CENTRAL_PORTAL_USERNAME- Sonatype usernameCENTRAL_PORTAL_PASSWORD- Sonatype passwordSIGNING_KEY_ID- GPG key IDSIGNING_KEY- GPG private key (armored)SIGNING_PASSWORD- GPG key passphrase
Publication includes
- Release AAR/JAR
- Sources JAR (
sourcesJar) - Javadoc JAR (
javadocJarvia Dokka) - POM with license, developer, and SCM information
Version Bumping Workflow
- Update versions in
buildSrc/src/main/kotlin/Versions.kt - Run
./gradlew buildto verify - Commit with message:
chore: bump version to X.Y.Z - Tag release:
git tag vX.Y.Z - Push tag to trigger CI publish