Skip to content

Commit 5425a34

Browse files
committed
chore: migrate to new publish
Signed-off-by: Todd Baert <[email protected]>
1 parent 957c0d1 commit 5425a34

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

pom.xml

Lines changed: 7 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -520,14 +520,13 @@
520520
<plugins>
521521
<!-- Begin publish to maven central -->
522522
<plugin>
523-
<groupId>org.sonatype.plugins</groupId>
524-
<artifactId>nexus-staging-maven-plugin</artifactId>
525-
<version>1.7.0</version>
523+
<groupId>org.sonatype.central</groupId>
524+
<artifactId>central-publishing-maven-plugin</artifactId>
525+
<version>0.8.0</version>
526526
<extensions>true</extensions>
527527
<configuration>
528-
<serverId>ossrh</serverId>
529-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
530-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
528+
<publishingServerId>central</publishingServerId>
529+
<autoPublish>true</autoPublish>
531530
</configuration>
532531
</plugin>
533532
<!-- End publish to maven central -->
@@ -711,8 +710,8 @@
711710

712711
<distributionManagement>
713712
<snapshotRepository>
714-
<id>ossrh</id>
715-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
713+
<id>central</id>
714+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
716715
</snapshotRepository>
717716
</distributionManagement>
718717

release/m2-settings.xml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,10 @@
55
<username>${env.OSSRH_USERNAME}</username>
66
<password>${env.OSSRH_PASSWORD}</password>
77
</server>
8+
<server>
9+
<id>central</id>
10+
<username>${env.CENTRAL_USERNAME}</username>
11+
<password>${env.CENTRAL_PASSWORD}</password>
12+
</server>
813
</servers>
914
</settings>

0 commit comments

Comments
 (0)