File tree Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Expand file tree Collapse file tree 4 files changed +22
-7
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,7 @@ For [Bazel](https://bazel.build), you can either
102102https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.73.0
103103
104104Development snapshots are available in [ Sonatypes's snapshot
105- repository] ( https://oss .sonatype.org/content/repositories/ snapshots/ ) .
105+ repository] ( https://central .sonatype.com/repository/maven- snapshots/ ) .
106106
107107Generated Code
108108--------------
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ Tagging the Release
160160 repository can then be ` released ` , which will begin the process of pushing
161161 the new artifacts to Maven Central (the staging repository will be destroyed
162162 in the process). You can see the complete process for releasing to Maven
163- Central on the [ OSSRH site] ( https://central.sonatype.org/pages/releasing-the-deployment.html ) .
163+ Central on the [ OSSRH site] ( https://central.sonatype.org/publish/publish-portal-ossrh-staging-api/#deploying ) .
164164
16516510 . We have containers for each release to detect compatibility regressions with
166166 old releases. Generate one for the new release by following the [ GCR image
Original file line number Diff line number Diff line change @@ -389,11 +389,11 @@ subprojects {
389389 url = new File (rootProject. repositoryDir). toURI()
390390 } else {
391391 String stagingUrl
392+ String baseUrl = " https://ossrh-staging-api.central.sonatype.com/service/local"
392393 if (rootProject. hasProperty(' repositoryId' )) {
393- stagingUrl = ' https://oss.sonatype.org/service/local/staging/deployByRepositoryId/' +
394- rootProject. repositoryId
394+ stagingUrl = " ${ baseUrl} /staging/deployByRepositoryId/" + rootProject. repositoryId
395395 } else {
396- stagingUrl = ' https://oss.sonatype.org/service/local/ staging/deploy/maven2/'
396+ stagingUrl = " ${ baseUrl } / staging/deploy/maven2/"
397397 }
398398 credentials {
399399 if (rootProject. hasProperty(' ossrhUsername' ) && rootProject. hasProperty(' ossrhPassword' )) {
@@ -402,7 +402,7 @@ subprojects {
402402 }
403403 }
404404 def releaseUrl = stagingUrl
405- def snapshotUrl = ' https://oss .sonatype.org/content/repositories/ snapshots/'
405+ def snapshotUrl = ' https://central .sonatype.com/repository/maven- snapshots/'
406406 url = version. endsWith(' SNAPSHOT' ) ? snapshotUrl : releaseUrl
407407 }
408408 }
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if [ -z "$USERNAME" -o -z "$PASSWORD" ]; then
5959 exit 1
6060fi
6161
62- STAGING_URL=" https://oss. sonatype.org /service/local/staging"
62+ STAGING_URL=" https://ossrh-staging-api.central. sonatype.com /service/local/staging"
6363
6464# We go through the effort of using deloyByRepositoryId/ because it is
6565# _substantially_ faster to upload files than deploy/maven2/. When using
@@ -108,3 +108,18 @@ XML="
108108</promoteRequest>"
109109curl --fail-with-body -X POST -d " $XML " -u " $USERPASS " -H " Content-Type: application/xml" \
110110 " $STAGING_URL /profiles/$PROFILE_ID /finish"
111+
112+ # TODO (okshiva): After 2-3 releases make it automatic.
113+ # After closing the repository on the staging API, we must manually trigger
114+ # its upload to the main Central Publisher Portal. We set publishing_type=automatic
115+ # to have it release automatically upon passing validation.
116+ # echo "Triggering release of repository ${REPOID} to the Central Portal"
117+
118+ # MANUAL_API_URL="https://ossrh-staging-api.central.sonatype.com/service/local/manual"
119+
120+ # curl --fail-with-body -X POST \
121+ # -H "Authorization: Bearer ${USERPASS}" \
122+ # -H "Content-Type: application/json" \
123+ # "${MANUAL_API_URL}/upload/repository/${REPOID}?publishing_type=automatic"
124+
125+ # echo "Release triggered. Monitor progress at https://central.sonatype.com/publishing/deployments"
You can’t perform that action at this time.
0 commit comments