Skip to content

Commit dc8eaa3

Browse files
committed
Changed Sonatype plugin to the one currently recommended
1 parent 1bfb74e commit dc8eaa3

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

.mvn/local-settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
</proxies>
77
<servers>
88
<server>
9-
<id>ossrh</id>
9+
<id>central</id>
1010
<username>${env.OSSRH_USERNAME}</username>
1111
<password>${env.OSSRH_PASSWORD}</password>
1212
</server>

pom.xml

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@
4848
<build>
4949
<plugins>
5050
<plugin>
51-
<groupId>org.sonatype.plugins</groupId>
52-
<artifactId>nexus-staging-maven-plugin</artifactId>
51+
<groupId>org.sonatype.central</groupId>
52+
<artifactId>central-publishing-maven-plugin</artifactId>
53+
<version>0.8.0</version>
5354
<extensions>true</extensions>
5455
<configuration>
55-
<serverId>ossrh</serverId>
56-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
57-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
56+
<publishingServerId>central</publishingServerId>
57+
<deploymentName>${version}</deploymentName>
5858
</configuration>
5959
</plugin>
6060

@@ -229,9 +229,5 @@
229229
<id>ossrh</id>
230230
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
231231
</repository>
232-
<snapshotRepository>
233-
<id>ossrh</id>
234-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
235-
</snapshotRepository>
236232
</distributionManagement>
237233
</project>

0 commit comments

Comments
 (0)