Skip to content

Commit 7c91f5a

Browse files
authored
Merge pull request #14 from rcsb/jd/mvncentralplugin
Switch to new maven central plugin
2 parents 3f95d74 + 25f0cb0 commit 7c91f5a

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

pom.xml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -103,16 +103,19 @@
103103
<id>release</id>
104104
<build>
105105
<plugins>
106-
<!-- handles propagating the build to the staging repository -->
106+
<!-- handles uploading the build to the maven central repository -->
107107
<plugin>
108-
<groupId>org.sonatype.plugins</groupId>
109-
<artifactId>nexus-staging-maven-plugin</artifactId>
110-
<version>1.7.0</version>
108+
<groupId>org.sonatype.central</groupId>
109+
<artifactId>central-publishing-maven-plugin</artifactId>
110+
<version>0.8.0</version>
111111
<extensions>true</extensions>
112112
<configuration>
113-
<serverId>ossrh</serverId>
114-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
115-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
113+
<publishingServerId>central</publishingServerId>
114+
<!-- If this is set to false, the artifact is only staged and then needs pushing manually via the web interface at https://central.sonatype.com/publishing/deployments -->
115+
<!-- With true it publishes automatically -->
116+
<autoPublish>true</autoPublish>
117+
<!-- NOTE this is to wait for the new release to be validated and publicly available. Not essential but nice that when maven is done, we know the artifact is publicly available -->
118+
<waitUntil>published</waitUntil>
116119
</configuration>
117120
</plugin>
118121

0 commit comments

Comments
 (0)