Repository navigation
Conversation
| "publishing_groups": [ | ||
| { | ||
| "namespace": "com.google.maps.android", | ||
| "packages": [ |
There was a problem hiding this comment.
I wonder if we could avoid keeping this list in sync by hand. collections and bom already apply the publishing convention plugin but are not included in settings.gradle.kts, so the day someone includes them they will be staged but silently never released. If generating it from the staged packages is too much, is worth to add at least a comment pointing to settings.gradle.kts. What do you think?
| --project=oss-exit-gate-prod \ | ||
| --location=us \ | ||
| --repository=android-maps-utils--mavencentral \ | ||
| --format='value(name)' 2>/dev/null || true)" |
There was a problem hiding this comment.
Is there a reason why we swallow the errors here? If listing fails (for example a permission problem) we skip the cleanup without noticing, and the failure comes later as HTTP_400_AlreadyStaged, which is harder to read. An empty repository already returns an empty list with exit code 0.
kikoso
left a comment
There was a problem hiding this comment.
LGTM! Thanks for the contribution, @zarturod . RELEASING.md describes still the Sonatype staging and the manual promotion in Nexus (steps 3 and 4), could we update it as part of this PR? And just to confirm: once the manifest is uploaded the release goes out without any manual step, right? Until now we had mavenCentralAutomaticRelease=false, so this changes a little bit how we release.
Summary
Migrates
com.google.maps.android:android-maps-utils*Maven Central release publishing in.github/workflows/publish.ymlto publish through Google's OSS Exit Gate (android-maps-utils/mavencentral).Changes
permissions(id-token: write) to the publishing job and pins Google Cloud GitHub Actions to 40-character commit SHAs (google-github-actions/auth,google-github-actions/setup-gcloud).projects/305452601764/locations/global/workloadIdentityPools/builders/providers/github).oss-exit-gate-prod/android-maps-utils--mavencentral) before uploading to avoid stale artifacts.https://us-maven.pkg.dev/oss-exit-gate-prod/android-maps-utils--mavencentraland uploadsmanifest.jsontogs://oss-exit-gate-prod-projects-bucket/android-maps-utils/mavencentral/manifests/to trigger the OSS Exit Gate release pipeline.SYNCED_GPG_KEY_*), removes direct Sonatype credentials (SONATYPE_TOKEN*), and leaves.github/workflows/publish-snapshot.yml(unsigned-SNAPSHOTuploads) unchanged.Verification (Production Smoke Test)
android-maps-utils/mavencentral) and infrastructure provisioning are live.com.google.maps.android:android-maps-utils@7.0.1:android-maps-utils-7.0.1.pom:HTTP_400_AlreadyStaged; android-maps-utils-7.0.1.aar:HTTP_400_AlreadyStaged) and GCS manifest upload (gs://oss-exit-gate-prod-projects-bucket/android-maps-utils/mavencentral/manifests/manifest-test-1795634338-283.json) passed.References
b/582481558