Skip to content

Commit

Permalink
Switches JReleaser from Sonatype/Maven OSSRH to Central Portal
Browse files Browse the repository at this point in the history
  • Loading branch information
jqno committed Dec 24, 2024
1 parent 5ef9c6f commit 7f45b62
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
uses: jreleaser/release-action@v2
with:
setup-java: false
version: 1.12.0
version: 1.15.0
env:
JRELEASER_PROJECT_VERSION: ${{ github.event.inputs.version }}
JRELEASER_GITHUB_TOKEN: ${{ secrets.JRELEASER_GITHUB_TOKEN }}
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_USERNAME }}
JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_MAVEN_CENTRAL_PASSWORD }}
JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_SONATYPE_USERNAME }}
JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_SONATYPE_TOKEN }}
- name: 'Set release version'
run: mvn versions:set --no-transfer-progress --batch-mode -DnewVersion="$NEXT_VERSION"
- name: 'Commit & push changes'
Expand Down
8 changes: 3 additions & 5 deletions jreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,9 @@ signing:

deploy:
maven:
nexus2:
maven-central:
mavenCentral:
sonatype:
active: ALWAYS
url: https://oss.sonatype.org/service/local
closeRepository: true
releaseRepository: false
url: https://central.sonatype.com/api/v1/publisher
stagingRepositories:
- target/staging-deploy

0 comments on commit 7f45b62

Please sign in to comment.