Skip to content

Commit 2706b01

Browse files
committed
Update publishing to Sonatype Central
1 parent 7ef05f3 commit 2706b01

File tree

1 file changed

+9
-12
lines changed

1 file changed

+9
-12
lines changed

pom.xml

Lines changed: 9 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,6 @@
4040
<id>github-ssh</id>
4141
<url>gitsite:[email protected]/tbroyer/gwt-maven-plugin.git</url>
4242
</site>
43-
<snapshotRepository>
44-
<id>ossrh</id>
45-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
46-
</snapshotRepository>
4743
</distributionManagement>
4844

4945
<prerequisites>
@@ -52,8 +48,9 @@
5248

5349
<repositories>
5450
<repository>
55-
<id>ossrh</id>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
51+
<name>Central Portal Snapshots</name>
52+
<id>central-portal-snapshots</id>
53+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
5754
<releases>
5855
<enabled>false</enabled>
5956
</releases>
@@ -348,14 +345,14 @@
348345
</dependencies>
349346
</plugin>
350347
<plugin>
351-
<groupId>org.sonatype.plugins</groupId>
352-
<artifactId>nexus-staging-maven-plugin</artifactId>
353-
<version>1.7.0</version>
348+
<groupId>org.sonatype.central</groupId>
349+
<artifactId>central-publishing-maven-plugin</artifactId>
350+
<version>0.9.0</version>
354351
<extensions>true</extensions>
355352
<configuration>
356-
<serverId>ossrh</serverId>
357-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
358-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
353+
<publishingServerId>central</publishingServerId>
354+
<autoPublish>true</autoPublish>
355+
<deploymentName>${project.artifactId} ${project.version}</deploymentName>
359356
</configuration>
360357
</plugin>
361358
<plugin>

0 commit comments

Comments
 (0)