Skip to content

Commit 26282c6

Browse files
committed
Updating JReleaser for OSSRH sunset
1 parent 5929b20 commit 26282c6

File tree

2 files changed

+11
-13
lines changed

2 files changed

+11
-13
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -136,8 +136,8 @@ jobs:
136136
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
137137
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}
138138
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
139-
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_DEPLOY_MAVEN_NEXUS2_USERNAME }}
140-
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_DEPLOY_MAVEN_NEXUS2_PASSWORD }}
139+
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.JRELEASER_MAVENCENTRAL_USERNAME }}
140+
JRELEASER_MAVENCENTRAL_TOKEN: ${{ secrets.JRELEASER_MAVENCENTRAL_TOKEN }}
141141
# Upload JRelease debug log
142142
- name: JReleaser output
143143
uses: actions/upload-artifact@v4

jreleaser.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,11 @@ project:
88
- Matt Coley
99
license: MIT
1010
inceptionYear: 2022
11-
stereotype: none
12-
java:
13-
version: 11
14-
groupId: software.coley
15-
artifactId: extra-collections
11+
languages:
12+
java:
13+
version: 11
14+
groupId: software.coley
15+
artifactId: extra-collections
1616

1717
release:
1818
github:
@@ -41,12 +41,10 @@ signing:
4141

4242
deploy:
4343
maven:
44-
nexus2:
45-
maven-central:
44+
mavenCentral:
45+
sonatype:
46+
url: https://central.sonatype.com/api/v1/publisher
4647
active: RELEASE
47-
url: https://s01.oss.sonatype.org/service/local
4848
applyMavenCentralRules: true
4949
stagingRepositories:
50-
- target/staging-deploy
51-
closeRepository: true
52-
releaseRepository: true
50+
- target/staging-deploy

0 commit comments

Comments
 (0)