X Tutup
Skip to content

Commit 21d61b1

Browse files
authored
Merge pull request #1115 from biojava/jd/mvncentralplugin
Switch to new maven central plugin
2 parents 5a699eb + 7b82b27 commit 21d61b1

File tree

1 file changed

+11
-8
lines changed

1 file changed

+11
-8
lines changed

pom.xml

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -580,17 +580,20 @@
580580
<id>release</id>
581581
<build>
582582
<plugins>
583-
<!-- for deployment on OSS Sonatype -->
584-
<!-- handles propagating the build to the staging repository -->
583+
<!-- handles uploading the build to the maven central repository -->
585584
<plugin>
586-
<groupId>org.sonatype.plugins</groupId>
587-
<artifactId>nexus-staging-maven-plugin</artifactId>
588-
<version>1.6.13</version>
585+
<groupId>org.sonatype.central</groupId>
586+
<artifactId>central-publishing-maven-plugin</artifactId>
587+
<version>0.8.0</version>
589588
<extensions>true</extensions>
590589
<configuration>
591-
<serverId>ossrh</serverId>
592-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
593-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
590+
<!-- Note your maven settings.xml needs a server section with <id> that matches this one and valid credentials for maven central -->
591+
<publishingServerId>central</publishingServerId>
592+
<!-- 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 -->
593+
<!-- With true it publishes automatically -->
594+
<autoPublish>true</autoPublish>
595+
<!-- NOTE this is to wait for the new release to be validated and publicly available. Not essential but nice that when build is done, we know the artifacts are available publicly -->
596+
<waitUntil>published</waitUntil>
594597
</configuration>
595598
</plugin>
596599

0 commit comments

Comments
 (0)
X Tutup