Skip to content

Commit 0f35306

Browse files
authored
Merge pull request #7 from PierreBtz/pbeitz/ossrh-api
[chore] Update to using the central Portal OSSRH Staging API
2 parents 8185454 + 1138815 commit 0f35306

1 file changed

Lines changed: 4 additions & 3 deletions

File tree

pom.xml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,15 +62,16 @@
6262
<repository>
6363
<id>cloudbees-nexus-staging</id>
6464
<name>Nexus Release Repository</name>
65-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
65+
<url>${distributionRootUrl}/service/local/staging/deploy/maven2/</url>
6666
</repository>
6767
</distributionManagement>
6868

6969
<properties>
7070
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
7171
<project.build.outputEncoding>UTF-8</project.build.outputEncoding>
7272
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
73-
<sonatypeOssDistMgmtSnapshotsUrl>https://oss.sonatype.org/content/repositories/snapshots/
73+
<distributionRootUrl>https://ossrh-staging-api.central.sonatype.com</distributionRootUrl>
74+
<sonatypeOssDistMgmtSnapshotsUrl>${distributionRootUrl}/content/repositories/snapshots/
7475
</sonatypeOssDistMgmtSnapshotsUrl>
7576
<git.provider>git</git.provider>
7677
<maven-scm.version>1.9.4</maven-scm.version>
@@ -234,7 +235,7 @@
234235
<extensions>true</extensions>
235236
<configuration>
236237
<serverId>cloudbees-nexus-snapshots</serverId>
237-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
238+
<nexusUrl>${distributionRootUrl}/</nexusUrl>
238239
<autoReleaseAfterClose>true</autoReleaseAfterClose>
239240
<!--stagingProfileId>2ba52c484c574d</stagingProfileId--><!-- if groupId starts with com.cloudbees-->
240241
<!--stagingProfileId>2acf39d998ccd7</stagingProfileId--><!-- if groupId starts with org.cloudbees-->

0 commit comments

Comments
 (0)