Skip to content

Commit b0943fe

Browse files
authored
Migrate to Sonatype Central Portal (#13)
This migrates from OSSRH (s01.oss.sonatype.org) to Central Portal
1 parent 77e6ee9 commit b0943fe

File tree

2 files changed

+8
-11
lines changed

2 files changed

+8
-11
lines changed

.github/workflows/deploy-artifacts.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,8 +89,8 @@ jobs:
8989
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.GPG_PUBLIC_KEY }}
9090
JRELEASER_GPG_SECRET_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
9191
JRELEASER_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
92-
JRELEASER_NEXUS2_USERNAME: ${{ secrets.OSSRH_USERNAME }}
93-
JRELEASER_NEXUS2_TOKEN: ${{ secrets.OSSRH_TOKEN }}
92+
JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
93+
JRELEASER_MAVENCENTRAL_SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
9494
JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
9595
JRELEASER_PROJECT_VERSION: ${{ env.PAYLOAD_VERSION }}
9696
JRELEASER_PROJECT_NAME: ${{ env.PAYLOAD_NAME }}

jreleaser.yml

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -15,15 +15,12 @@ deploy:
1515
pomchecker:
1616
failOnWarning: false
1717
strict: false
18-
nexus2:
19-
maven-central:
18+
mavenCentral:
19+
sonatype:
2020
active: ALWAYS
21-
url: https://s01.oss.sonatype.org/service/local
22-
snapshotUrl: https://s01.oss.sonatype.org/content/repositories/snapshots/
23-
closeRepository: true
24-
releaseRepository: true
25-
transitionDelay: 20
26-
transitionMaxRetries: 100
27-
stagingProfileId: 166ff053e5f61f
21+
url: https://central.sonatype.com/api/v1/publisher
22+
retryDelay: 20
23+
maxRetries: 100
24+
snapshotSupported: true
2825
stagingRepositories:
2926
- ./repository

0 commit comments

Comments
 (0)