Skip to content

Add Maven Central publishing for SalesforceReact - #492

Merged
brandonpage merged 2 commits into
forcedotcom:devfrom
brandonpage:salesforcereact-maven-publishing
Aug 27, 2026
Merged

brandonpage merged 2 commits into
forcedotcom:devfrom
brandonpage:salesforcereact-maven-publishing

Conversation

@brandonpage

Copy link
Copy Markdown
Contributor

What

Adds the infrastructure to publish the com.salesforce.mobilesdk:SalesforceReact AAR to Maven Central from this repo.

When the Android bridge moved here from SalesforceMobileSDK-Android/libs/SalesforceReact, the npm (react-native-force) publishing came along but the Maven Central publishing did not — there was no infrastructure to publish the artifact from this repo. This adds it, mirroring the Android repo's setup.

Changes

  • Root Gradle publish build: settings.gradle.kts (exposes android/ as :SalesforceReact), build.gradle.kts (nexus-publish plugin), gradle.properties, and the Gradle wrapper.
  • buildSrc/publish-module.gradle.kts: maven-publish + signing convention plugin (POM points at this repo).
  • publish/: publish.sh and publish-root.gradle (Central Portal / signing credentials from local.properties or env), matching the Android repo.
  • android/build.gradle: applies the publishing config, guarded by rootProject.name so it is a no-op during React Native autolinking in consumer apps.

Version handling

Both the published Maven version and the MobileSync dependency version are read from package.json (the single source of truth setversion.sh stamps), so RC→GA bumps need no Gradle edits and the SalesforceReact artifact always depends on the matching MobileSync version.

Notes

  • Publishing requires MobileSync (and its transitive SDK libs) to be released to Maven Central first, since android/build.gradle now consumes it as a binary Maven dependency rather than a project dependency.
  • local.properties (signing/Central credentials) stays gitignored.

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
TestsPassed ☑️SkippedFailed ❌️
iOS ^26 Test Results35 ran23 ✅12 ❌
TestResult
iOS ^26 Test Results
ReactNetTests.testCollectionCreateRetrieve()❌ failure
ReactNetTests.testCollectionUpsertUpdateRetrieve()❌ failure
ReactNetTests.testCreateDelRetrieve()❌ failure
ReactNetTests.testCreateRetrieve()❌ failure
ReactNetTests.testDescribe()❌ failure
ReactNetTests.testDescribeGlobal()❌ failure
ReactNetTests.testDescribeLayout()❌ failure
ReactNetTests.testMetaData()❌ failure
ReactNetTests.testQuery()❌ failure
ReactNetTests.testResources()❌ failure
ReactNetTests.testSearch()❌ failure
ReactNetTests.testUpsertUpdateRetrieve()❌ failure

@github-actions

github-actions Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
TestsPassed ☑️SkippedFailed ❌️
iOS ^18 Test Results35 ran17 ✅18 ❌
TestResult
iOS ^18 Test Results
ReactMobileSyncTests.testCleanResyncGhosts()❌ failure
ReactMobileSyncTests.testGetSyncStatusDeleteSync()❌ failure
ReactMobileSyncTests.testReSync()❌ failure
ReactMobileSyncTests.testSyncDown()❌ failure
ReactMobileSyncTests.testSyncUp()❌ failure
ReactNetTests.testCollectionCreateDeleteRetrieve()❌ failure
ReactNetTests.testCollectionCreateRetrieve()❌ failure
ReactNetTests.testCollectionUpsertUpdateRetrieve()❌ failure
ReactNetTests.testCreateDelRetrieve()❌ failure
ReactNetTests.testCreateRetrieve()❌ failure
ReactNetTests.testDescribe()❌ failure
ReactNetTests.testDescribeGlobal()❌ failure
ReactNetTests.testDescribeLayout()❌ failure
ReactNetTests.testMetaData()❌ failure
ReactNetTests.testQuery()❌ failure
ReactNetTests.testResources()❌ failure
ReactNetTests.testSearch()❌ failure
ReactNetTests.testUpsertUpdateRetrieve()❌ failure

@brandonpage
brandonpage merged commit b51ad32 into forcedotcom:dev Aug 27, 2026
7 of 9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants