Skip to content

Commit aafed5d

Browse files
Update publishing plugin. (#2969)
1 parent bc7608d commit aafed5d

File tree

1 file changed

+5
-23
lines changed

1 file changed

+5
-23
lines changed

pom.xml

Lines changed: 5 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -71,34 +71,16 @@
7171
</property>
7272
</activation>
7373

74-
<distributionManagement>
75-
<snapshotRepository>
76-
<id>nexus</id>
77-
<!-- Use the localhost endpoint for testing -->
78-
<!-- <url>http://localhost:8081/repository/maven-snapshots/</url> -->
79-
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
80-
</snapshotRepository>
81-
<repository>
82-
<id>nexus</id>
83-
<!-- Use the localhost endpoint for testing -->
84-
<!-- <url>http://localhost:8081/repository/maven-releases/</url> -->
85-
<url>https://ossrh-staging-api.central.sonatype.com/service/local/</url>
86-
</repository>
87-
</distributionManagement>
88-
8974
<build>
9075
<plugins>
9176
<plugin>
92-
<groupId>org.sonatype.plugins</groupId>
93-
<artifactId>nexus-staging-maven-plugin</artifactId>
94-
<version>1.6.8</version>
77+
<groupId>org.sonatype.central</groupId>
78+
<artifactId>central-publishing-maven-plugin</artifactId>
79+
<version>0.8.0</version>
9580
<extensions>true</extensions>
9681
<configuration>
97-
<serverId>nexus</serverId>
98-
<!-- Use the localhost endpoint for testing -->
99-
<!-- <nexusUrl>http://localhost:8081/repository/maven-releases/</nexusUrl> -->
100-
<nexusUrl>https://ossrh-staging-api.central.sonatype.com/service/local/</nexusUrl>
101-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
82+
<publishingServerId>central</publishingServerId>
83+
<autoPublish>false</autoPublish>
10284
</configuration>
10385
</plugin>
10486
<plugin>

0 commit comments

Comments
 (0)