Publish SNAPSHOT versions to GitHub Packages instead of Maven Central#3647
Publish SNAPSHOT versions to GitHub Packages instead of Maven Central#3647AlvaroBrey wants to merge 4 commits into
Conversation
64bf7f8 to
f57cba5
Compare
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #3647 +/- ##
=======================================
Coverage 80.27% 80.27%
=======================================
Files 379 379
Lines 15557 15557
Branches 2170 2170
=======================================
Hits 12489 12489
Misses 2203 2203
Partials 865 865 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
| - deploy-snapshot: | ||
| context: maven-central-publishing | ||
| context: | ||
| - maven-central-publishing |
There was a problem hiding this comment.
Both contexts because we need the signing keys. We also could just not sign snapshots TBH.
|
@cursor review pls |
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
❌ Bugbot Autofix is OFF. To automatically fix reported issues with cloud agents, have a team admin enable autofix in the Cursor dashboard.
Reviewed by Cursor Bugbot for commit f57cba5. Configure here.
| configureAndroidLibrary() | ||
| configureApisFlavors() | ||
| configureConditionalPublishing() | ||
| configureSnapshotPublishing() |
There was a problem hiding this comment.
BOM and codegen skip snapshot publish
Medium Severity
configureSnapshotPublishing() is only invoked from the public library convention plugin, while :bom and :codegen apply com.vanniktech.maven.publish on their own. Snapshot deploy now runs publishAllPublicationsToGitHubPackagesRepository instead of publish, so purchases-bom and purchases-codegen-plugin are not published to GitHub and still have Maven Central publish tasks enabled.
Additional Locations (1)
Reviewed by Cursor Bugbot for commit f57cba5. Configure here.
f57cba5 to
6754289
Compare


WIP
Note
Medium Risk
Changes artifact distribution for every snapshot deploy and consumer repo config; release paths are gated on version suffix and Central tasks are disabled for snapshots, but CI credential or task misconfiguration could break mainline snapshot publishing.
Overview
-SNAPSHOTbuilds now publish to GitHub Packages instead of Maven Central; release publishing is unchanged.Gradle convention adds
configureSnapshotPublishing()for public library modules: whenVERSION_NAMEends in-SNAPSHOT, it registershttps://maven.pkg.github.com/RevenueCat/purchases-androidand disables Maven Central publish tasks so snapshots cannot ship to Central.Fastlane
deploypicks credentials and Gradle publish tasks by version—snapshots usepublishAllPublicationsToGitHubPackagesRepositorywith GitHub Packages env vars and skip GitHub release creation; releases still use Maven Central andpublish.CircleCI snapshot workflows add the
github-packages-publishingcontext for deploy and for sample apps that resolve snapshot dependencies after deploy. Example apps switch their snapshot Maven repo from Sonatype to GitHub Packages with the same credential properties/env vars.RELEASING.mddocuments snapshot behavior, PAT scopes, and consumer Gradle setup.Reviewed by Cursor Bugbot for commit f57cba5. Bugbot is set up for automated code reviews on this repo. Configure here.