promote OSSRH staging to Central Portal from CodeBuild - #130
Conversation
Gradle maven-publish only PUTs artifacts; without this POST the files never show in the Publisher Portal or on Maven Central.
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Organization UI Review profile: CHILL Plan: Enterprise Run ID: 📒 Files selected for processing (1)
Included review availability: Your plan provides up to 12 included reviews per hour; 11 remain after this review. WalkthroughThe production build now sends a base64-encoded Maven credential token to the Sonatype staging upload endpoint after publishing the Maven release. The request fails when Sonatype returns an unsuccessful response. ChangesSonatype staging upload
Estimated code review effort: 1 (Trivial) | ~5 minutes Merge Risk: 🔵 Low · up to The change promotes published artifacts to the Central Portal using the existing Maven credentials. If those secrets are still legacy OSSRH tokens, publication may succeed while promotion fails and require manual cleanup; confirm the configured credentials before merging. 🚥 Pre-merge checks | ✅ 1✅ Passed checks (1 passed)
✨ Finishing Touches 💡 1🛠️ Fix failing CI checks 💡
Comment |
Summary
maven-publishuploads artifacts, POST/manual/upload/defaultRepository/com.chargebeefrom the same CodeBuild IP so the staging repo is transferred to the Central Publisher Portal. Gradle PUTs alone do not appear in Deployments or on Maven Central.Updates the CodeBuild workflow to install AWS CLI v2 and promote published Maven artifacts by POSTing a base64-encoded credential token to
/manual/upload/defaultRepository/com.chargebee.