Skip to content

Commit 6892861

Browse files
committed
Switch to central-publishing-maven-plugin for publishing
1 parent 97488c8 commit 6892861

File tree

1 file changed

+7
-9
lines changed

1 file changed

+7
-9
lines changed

pom.xml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ under the License.
5454
</snapshotRepository>
5555
<repository>
5656
<id>central</id>
57-
<url>${nexus.url}/service/local/staging/deploy/maven2</url>
57+
<url>https://ossrh-staging-api.central.sonatype.com/service/local/staging/deploy/maven2</url>
5858
</repository>
5959
</distributionManagement>
6060

@@ -99,8 +99,6 @@ under the License.
9999

100100
<scalac-scoverage-plugin.version>2.4.1</scalac-scoverage-plugin.version>
101101
<scalac-scoverage-plugin.scala.version>2.13</scalac-scoverage-plugin.scala.version>
102-
103-
<nexus.url>https://ossrh-staging-api.central.sonatype.com</nexus.url>
104102
</properties>
105103

106104
<dependencies>
@@ -773,14 +771,14 @@ under the License.
773771
</plugin>
774772

775773
<plugin>
776-
<groupId>org.sonatype.plugins</groupId>
777-
<artifactId>nexus-staging-maven-plugin</artifactId>
778-
<version>1.7.0</version>
774+
<groupId>org.sonatype.central</groupId>
775+
<artifactId>central-publishing-maven-plugin</artifactId>
776+
<version>0.9.0</version>
779777
<extensions>true</extensions>
780778
<configuration>
781-
<nexusUrl>${nexus.url}</nexusUrl>
782-
<serverId>central</serverId>
783-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
779+
<publishingServerId>central</publishingServerId>
780+
<autoPublish>true</autoPublish>
781+
<waitUntil>published</waitUntil>
784782
</configuration>
785783
</plugin>
786784
</plugins>

0 commit comments

Comments
 (0)