Skip to content

Commit 5757a57

Browse files
committed
using 'central' profile.
1 parent 6e2e574 commit 5757a57

File tree

3 files changed

+8
-9
lines changed

3 files changed

+8
-9
lines changed

.github/workflows/maven.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
gpg-passphrase: GPG_SECRET_KEY_PASSPHRASE
3030
cache: maven
3131
- name: Build with Maven
32-
run: mvn -B -Pdeploy,ossrh -U deploy
32+
run: mvn -B -Pdeploy,central -U deploy
3333
env:
3434
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
3535
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
email: 'git@mmprogrami.nl'
3131
token: '${{ secrets.GITHUB_TOKEN }}'
3232
- name: Release
33-
run: mvn -Pdeploy,ossrh --batch-mode -Darguments=-DskipTests release:prepare release:perform
33+
run: mvn -Pdeploy,central --batch-mode -Darguments=-DskipTests release:prepare release:perform
3434
env:
3535
CENTRAL_USERNAME: ${{ secrets.CENTRAL_USERNAME }}
3636
CENTRAL_PASSWORD: ${{ secrets.CENTRAL_PASSWORD }}

client-bom/pom.xml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -85,18 +85,17 @@
8585
</repositories>
8686
<profiles>
8787
<profile>
88-
<id>deploy</id>
88+
<id>central</id>
8989
<build>
9090
<plugins>
9191
<plugin>
92-
<groupId>org.sonatype.plugins</groupId>
93-
<artifactId>nexus-staging-maven-plugin</artifactId>
94-
<version>1.7.0</version>
92+
<groupId>org.sonatype.central</groupId>
93+
<artifactId>central-publishing-maven-plugin</artifactId>
94+
<version>0.8.0</version>
9595
<extensions>true</extensions>
9696
<configuration>
97-
<serverId>vpro-ossrh</serverId>
98-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
99-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
97+
<publishingServerId>central</publishingServerId>
98+
<autoPublish>true</autoPublish>
10099
</configuration>
101100
</plugin>
102101
<plugin>

0 commit comments

Comments
 (0)