Skip to content

Commit da82f2c

Browse files
chore: publish to maven central (#30)
* publish to maven central * use central as server
1 parent 3747a4a commit da82f2c

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

.github/workflows/publish.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ jobs:
7979
with:
8080
java-version: "21"
8181
distribution: "zulu"
82-
server-id: "nexus"
82+
server-id: "central"
8383
server-username: "SONATYPE_USER"
8484
server-password: "SONATYPE_PASS"
8585
gpg-private-key: ${{secrets.GPG_SIGNING_KEY}}

pom.xml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,13 @@
101101
</executions>
102102
</plugin>
103103
<plugin>
104-
<groupId>org.sonatype.plugins</groupId>
105-
<artifactId>nexus-staging-maven-plugin</artifactId>
106-
<version>1.7.0</version>
104+
<groupId>org.sonatype.central</groupId>
105+
<artifactId>central-publishing-maven-plugin</artifactId>
106+
<version>0.8.0</version>
107107
<extensions>true</extensions>
108108
<configuration>
109-
<serverId>nexus</serverId>
110-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
111-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
109+
<publishingServerId>central</publishingServerId>
110+
<autoPublish>false</autoPublish>
112111
</configuration>
113112
</plugin>
114113
</plugins>

0 commit comments

Comments
 (0)