Skip to content

Commit 7839d68

Browse files
committed
Publish
1 parent 317562c commit 7839d68

4 files changed

Lines changed: 24 additions & 22 deletions

File tree

PUBLISHING.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -161,8 +161,9 @@ afterEvaluate {
161161
repositories {
162162
maven {
163163
name = "sonatype"
164-
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
165-
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
164+
// OSSRH (s01.oss.sonatype.org) was sunset on 2025-06-30.
165+
val releasesRepoUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
166+
val snapshotsRepoUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
166167
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl
167168

168169
credentials {
@@ -184,21 +185,20 @@ afterEvaluate {
184185
```bash
185186
cd atlantis-android
186187

187-
# Publish to staging repository
188+
# Publish artifacts to Sonatype Central API
188189
./gradlew :atlantis:publishReleasePublicationToSonatypeRepository
189190

190191
# Or publish all publications
191192
./gradlew :atlantis:publishAllPublicationsToSonatypeRepository
192193
```
193194

194-
### 6. Release from Staging
195+
### 6. Release in Central Portal
195196

196-
1. Log in to https://s01.oss.sonatype.org
197-
2. Go to "Staging Repositories"
198-
3. Find your repository (named `comproxyman-XXXX`)
199-
4. Click "Close" and wait for validation
200-
5. If validation passes, click "Release"
201-
6. Wait 10-30 minutes for sync to Maven Central
197+
1. Log in to https://central.sonatype.com
198+
2. Go to `Publishing -> Deployments`
199+
3. Find your deployment for namespace `com.proxyman`
200+
4. Click `Publish` (or wait if auto-publish is enabled)
201+
5. Wait 10-30 minutes for sync to Maven Central
202202

203203
---
204204

@@ -344,7 +344,7 @@ Common issues:
344344
- Missing Sources JAR
345345
- Invalid signature
346346

347-
Check the staging repository "Activity" tab for specific errors.
347+
Check deployment details in `https://central.sonatype.com/publishing/deployments` for specific validation errors.
348348

349349
---
350350

atlantis/build.gradle.kts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,10 @@ afterEvaluate {
116116
repositories {
117117
maven {
118118
name = "Sonatype"
119-
val releasesRepoUrl = uri("https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/")
120-
val snapshotsRepoUrl = uri("https://s01.oss.sonatype.org/content/repositories/snapshots/")
119+
// OSSRH (s01.oss.sonatype.org) was shut down on 2025-06-30.
120+
// These are the Central Portal-compatible endpoints.
121+
val releasesRepoUrl = uri("https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2/")
122+
val snapshotsRepoUrl = uri("https://central.sonatype.com/repository/maven-snapshots/")
121123

122124
// Critical: SNAPSHOT versions must go to snapshot repo, otherwise Sonatype rejects upload.
123125
url = if (version.toString().endsWith("SNAPSHOT")) snapshotsRepoUrl else releasesRepoUrl

gradle.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ android.nonTransitiveRClass=true
3030

3131
# Library version
3232
VERSION_NAME=1.0.0
33-
VERSION_CODE=14
33+
VERSION_CODE=15
3434
GROUP=com.proxyman
3535
POM_ARTIFACT_ID=atlantis-android
3636

publish.sh

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -240,13 +240,13 @@ if [[ "$TARGET" == "maven-central" || "$TARGET" == "both" ]]; then
240240
done
241241
info "All required credentials found in ~/.gradle/gradle.properties"
242242

243-
step "Publishing to Sonatype staging repository"
243+
step "Publishing to Sonatype Central API"
244244

245245
if [[ "$DRY_RUN" == true ]]; then
246-
warn "[dry-run] Would publish to Sonatype staging"
246+
warn "[dry-run] Would publish artifacts to Sonatype Central API"
247247
else
248248
./gradlew :atlantis:publishReleasePublicationToSonatypeRepository --no-daemon
249-
info "Published to Sonatype staging repository"
249+
info "Published artifacts to Sonatype Central API"
250250
fi
251251
fi
252252

@@ -299,11 +299,11 @@ fi
299299
echo ""
300300

301301
if [[ "$TARGET" == "maven-central" || "$TARGET" == "both" ]]; then
302-
echo -e "${GREEN}${BOLD}Published to Sonatype staging!${NC} Complete the release manually:"
303-
echo -e " 1. Log in to ${CYAN}https://s01.oss.sonatype.org${NC}"
304-
echo -e " 2. Go to ${BOLD}Staging Repositories${NC}"
305-
echo -e " 3. Find your repository (${BOLD}comproxyman-XXXX${NC})"
306-
echo -e " 4. Click ${BOLD}Close${NC} wait for validation → click ${BOLD}Release${NC}"
302+
echo -e "${GREEN}${BOLD}Uploaded to Sonatype Central publishing API.${NC} Complete release in Central Portal:"
303+
echo -e " 1. Log in to ${CYAN}https://central.sonatype.com${NC}"
304+
echo -e " 2. Go to ${BOLD}Publishing → Deployments${NC}"
305+
echo -e " 3. Find your deployment for namespace ${BOLD}${GROUP_ID}${NC}"
306+
echo -e " 4. Click ${BOLD}Publish${NC} (or wait if auto-publish is enabled)"
307307
echo -e " 5. Artifacts sync to Maven Central in ~10-30 minutes"
308308
echo ""
309309
echo -e " Verify: ${CYAN}https://repo1.maven.org/maven2/com/proxyman/atlantis-android/${VERSION}/${NC}"

0 commit comments

Comments
 (0)