Skip to content

Commit 4d1a8c9

Browse files
committed
chore: #191 Migrate to new Maven Central infrastructure fo release
Signed-off-by: Laurent Broudoux <[email protected]>
1 parent 167f19c commit 4d1a8c9

File tree

4 files changed

+12
-13
lines changed

4 files changed

+12
-13
lines changed

.github/workflows/build-verify.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
environment: Build
2222
steps:
2323
- name: Checkout Code
24-
uses: actions/checkout@v4
24+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525

2626
- name: Set up JDK 17 for x64
27-
uses: actions/setup-java@v4
27+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
2828
with:
2929
java-version: '17'
3030
distribution: 'temurin'

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,14 @@ jobs:
2222
id-token: write
2323
steps:
2424
- name: Checkout Code
25-
uses: actions/checkout@v4
25+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2626
with:
2727
ssh-key: ${{ secrets.RELEASE_DEPLOY_KEY }}
2828
fetch-depth: 0
2929
ref: ${{ github.event.inputs.branch }}
3030

3131
- name: Set up JDK 17 for x64
32-
uses: actions/setup-java@v4
32+
uses: actions/setup-java@3a4f6e1af504cf6a31855fa899c6aa5355ba6c12 # v4.7.0
3333
with:
3434
java-version: '17'
3535
distribution: 'temurin'
@@ -52,8 +52,8 @@ jobs:
5252

5353
- name: Publish package with JReleaser
5454
env:
55-
JRELEASER_NEXUS2_USERNAME: ${{ secrets.JRELEASER_NEXUS2_USERNAME }}
56-
JRELEASER_NEXUS2_PASSWORD: ${{ secrets.JRELEASER_NEXUS2_PASSWORD }}
55+
JRELEASER_MAVENCENTRAL_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
56+
JRELEASER_MAVENCENTRAL_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
5757
JRELEASER_GPG_PASSPHRASE: ${{ secrets.JRELEASER_GPG_PASSPHRASE }}
5858
JRELEASER_GPG_SECRET_KEY: ${{ secrets.JRELEASER_GPG_SECRET_KEY }}
5959
JRELEASER_GPG_PUBLIC_KEY: ${{ secrets.JRELEASER_GPG_PUBLIC_KEY }}

jreleaser.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,14 @@ files:
3232

3333
deploy:
3434
maven:
35-
nexus2:
35+
mavenCentral:
3636
sonatype:
3737
active: ALWAYS
3838
snapshotSupported: false
39-
url: https://oss.sonatype.org/service/local
40-
snapshotUrl: https://oss.sonatype.org/content/repositories/snapshots
41-
stagingProfileId: c3fae58a8dda9
42-
closeRepository: false
43-
releaseRepository: false
39+
url: https://central.sonatype.com/api/v1/publisher
40+
username: wPlqdV4c
41+
namespace: io.github.microcks
42+
applyMavenCentralRules: true
4443
stagingRepositories:
4544
- target/staging-deploy
4645
pomchecker:

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -264,7 +264,7 @@
264264
<plugin>
265265
<groupId>org.jreleaser</groupId>
266266
<artifactId>jreleaser-maven-plugin</artifactId>
267-
<version>1.17.0</version>
267+
<version>1.19.0</version>
268268
<inherited>false</inherited>
269269
<configuration>
270270
<configFile>jreleaser.yml</configFile>

0 commit comments

Comments
 (0)