Skip to content

Commit eac8010

Browse files
committed
changed for new plugin for Maven deployments
1 parent 393816f commit eac8010

2 files changed

Lines changed: 12 additions & 10 deletions

File tree

docs/release.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ In your local `~/.m2` Maven repository, you need to create a `settings.xml` file
1515
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
1616
<servers>
1717
<server>
18-
<id>ossrh</id>
18+
<id>central</id>
1919
<username>???</username>
2020
<password>???</password>
2121
</server>

pom.xml

Lines changed: 11 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,8 @@
8585
<artifactId>maven-gpg-plugin</artifactId>
8686
</plugin>
8787
<plugin>
88-
<groupId>org.sonatype.plugins</groupId>
89-
<artifactId>nexus-staging-maven-plugin</artifactId>
88+
<groupId>org.sonatype.central</groupId>
89+
<artifactId>central-publishing-maven-plugin</artifactId>
9090
</plugin>
9191
</plugins>
9292
</build>
@@ -1306,16 +1306,18 @@
13061306
</executions>
13071307
</plugin>
13081308

1309-
<!-- We deploy to SonaType, which then sync to Maven Central -->
1309+
<!-- To deploy to Maven Central
1310+
https://central.sonatype.com/account
1311+
https://central.sonatype.org/publish/publish-portal-maven/
1312+
-->
13101313
<plugin>
1311-
<groupId>org.sonatype.plugins</groupId>
1312-
<artifactId>nexus-staging-maven-plugin</artifactId>
1313-
<version>1.6.8</version>
1314+
<groupId>org.sonatype.central</groupId>
1315+
<artifactId>central-publishing-maven-plugin</artifactId>
1316+
<version>0.7.0</version>
13141317
<extensions>true</extensions>
13151318
<configuration>
1316-
<serverId>ossrh</serverId>
1317-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
1318-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
1319+
<publishingServerId>central</publishingServerId>
1320+
<autoPublish>true</autoPublish>
13191321
</configuration>
13201322
</plugin>
13211323

0 commit comments

Comments
 (0)