Skip to content

Commit 027bee5

Browse files
committed
build: migrate from ossrh to central publishing
1 parent d540536 commit 027bee5

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ jobs:
202202
distribution: 'temurin'
203203
java-version: '11'
204204
java-package: jdk
205-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
205+
server-id: central # Value of the distributionManagement/repository/id field of the pom.xml
206206
server-username: MAVEN_CENTRAL_USERNAME # env variable for username in deploy (1)
207207
server-password: MAVEN_CENTRAL_PASSWORD # env variable for token in deploy (2)
208208
- name: Get Project Version

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -185,14 +185,14 @@
185185
</plugin>
186186

187187
<plugin>
188-
<groupId>org.sonatype.plugins</groupId>
189-
<artifactId>nexus-staging-maven-plugin</artifactId>
190-
<version>1.7.0</version>
188+
<groupId>org.sonatype.central</groupId>
189+
<artifactId>central-publishing-maven-plugin</artifactId>
190+
<version>0.7.0</version>
191191
<extensions>true</extensions>
192192
<configuration>
193-
<serverId>ossrh</serverId>
194-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
195-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
193+
<publishingServerId>central</publishingServerId>
194+
<autoPublish>true</autoPublish>
195+
<waitUntil>published</waitUntil>
196196
</configuration>
197197
</plugin>
198198

@@ -266,7 +266,7 @@
266266

267267
<distributionManagement>
268268
<snapshotRepository>
269-
<id>ossrh</id>
269+
<id>central</id>
270270
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
271271
</snapshotRepository>
272272
</distributionManagement>

0 commit comments

Comments
 (0)