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
102
102
https://search.maven.org/search?q=g:io.grpc%20AND%20v:1.73.0
103
103
104
104
Development 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/ ) .
106
106
107
107
Generated Code
108
108
--------------
Original file line number Diff line number Diff line change @@ -160,7 +160,7 @@ Tagging the Release
160
160
repository can then be ` released ` , which will begin the process of pushing
161
161
the new artifacts to Maven Central (the staging repository will be destroyed
162
162
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 ) .
164
164
165
165
10 . We have containers for each release to detect compatibility regressions with
166
166
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 {
389
389
url = new File (rootProject. repositoryDir). toURI()
390
390
} else {
391
391
String stagingUrl
392
+ String baseUrl = " https://ossrh-staging-api.central.sonatype.com/service/local"
392
393
if (rootProject. hasProperty(' repositoryId' )) {
393
- stagingUrl = ' https://oss.sonatype.org/service/local/staging/deployByRepositoryId/' +
394
- rootProject. repositoryId
394
+ stagingUrl = " ${ baseUrl} /staging/deployByRepositoryId/" + rootProject. repositoryId
395
395
} else {
396
- stagingUrl = ' https://oss.sonatype.org/service/local/ staging/deploy/maven2/'
396
+ stagingUrl = " ${ baseUrl } / staging/deploy/maven2/"
397
397
}
398
398
credentials {
399
399
if (rootProject. hasProperty(' ossrhUsername' ) && rootProject. hasProperty(' ossrhPassword' )) {
@@ -402,7 +402,7 @@ subprojects {
402
402
}
403
403
}
404
404
def releaseUrl = stagingUrl
405
- def snapshotUrl = ' https://oss .sonatype.org/content/repositories/ snapshots/'
405
+ def snapshotUrl = ' https://central .sonatype.com/repository/maven- snapshots/'
406
406
url = version. endsWith(' SNAPSHOT' ) ? snapshotUrl : releaseUrl
407
407
}
408
408
}
Original file line number Diff line number Diff line change @@ -59,7 +59,7 @@ if [ -z "$USERNAME" -o -z "$PASSWORD" ]; then
59
59
exit 1
60
60
fi
61
61
62
- STAGING_URL=" https://oss. sonatype.org /service/local/staging"
62
+ STAGING_URL=" https://ossrh-staging-api.central. sonatype.com /service/local/staging"
63
63
64
64
# We go through the effort of using deloyByRepositoryId/ because it is
65
65
# _substantially_ faster to upload files than deploy/maven2/. When using
@@ -108,3 +108,18 @@ XML="
108
108
</promoteRequest>"
109
109
curl --fail-with-body -X POST -d " $XML " -u " $USERPASS " -H " Content-Type: application/xml" \
110
110
" $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