Skip to content

Commit 5c4f122

Browse files
committed
chore: use Maven Central publishing
...instead of deprecated OSSRH.
1 parent aacc266 commit 5c4f122

File tree

2 files changed

+8
-9
lines changed

2 files changed

+8
-9
lines changed

.github/workflows/publish-to-maven-central.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ jobs:
2727
java-version: 11
2828

2929
- name: Release Maven package
30-
uses: samuelmeuli/action-maven-publish@v1
30+
uses: WasiqB/maven-publish-action@v1
3131
with:
3232
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
3333
gpg_passphrase: ${{ secrets.GPG_PASSPHRASE }}
34-
nexus_username: ${{ secrets.SONATYPE_USERNAME }}
35-
nexus_password: ${{ secrets.SONATYPE_PASSWORD }}
34+
nexus_username: ${{ secrets.NEXUS_USERNAME }}
35+
nexus_password: ${{ secrets.NEXUS_PASSWORD }}

pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -138,14 +138,13 @@
138138
</configuration>
139139
</plugin>
140140
<plugin>
141-
<groupId>org.sonatype.plugins</groupId>
142-
<artifactId>nexus-staging-maven-plugin</artifactId>
143-
<version>1.6.8</version>
141+
<groupId>org.sonatype.central</groupId>
142+
<artifactId>central-publishing-maven-plugin</artifactId>
143+
<version>0.7.0</version>
144144
<extensions>true</extensions>
145145
<configuration>
146-
<serverId>ossrh</serverId>
147-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
148-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
146+
<publishingServerId>central</publishingServerId>
147+
<autoPublish>true</autoPublish>
149148
</configuration>
150149
</plugin>
151150
</plugins>

0 commit comments

Comments
 (0)