Skip to content

Commit c94d449

Browse files
authored
Merge pull request #96 from browserstack/LOC-9999_move_publishing_to_central
Move publishing from legacy to central sonatype
2 parents d2223e3 + 25eda07 commit c94d449

File tree

1 file changed

+14
-18
lines changed

1 file changed

+14
-18
lines changed

pom.xml

Lines changed: 14 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -33,13 +33,9 @@
3333
</scm>
3434

3535
<distributionManagement>
36-
<snapshotRepository>
37-
<id>ossrh</id>
38-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
39-
</snapshotRepository>
4036
<repository>
41-
<id>ossrh</id>
42-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
37+
<id>central</id>
38+
<url>https://central.sonatype.com/api/v1/publisher/deployments/upload/</url>
4339
</repository>
4440
</distributionManagement>
4541

@@ -87,14 +83,14 @@
8783
</executions>
8884
</plugin>
8985
<plugin>
90-
<groupId>org.sonatype.plugins</groupId>
91-
<artifactId>nexus-staging-maven-plugin</artifactId>
92-
<version>1.6.9</version>
86+
<groupId>org.sonatype.central</groupId>
87+
<artifactId>central-publishing-maven-plugin</artifactId>
88+
<version>0.8.0</version>
9389
<extensions>true</extensions>
9490
<configuration>
95-
<serverId>ossrh</serverId>
96-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
97-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
91+
<publishingServerId>central</publishingServerId>
92+
<tokenAuth>true</tokenAuth>
93+
<autoPublish>false</autoPublish>
9894
</configuration>
9995
</plugin>
10096
<plugin>
@@ -132,14 +128,14 @@
132128
<build>
133129
<plugins>
134130
<plugin>
135-
<groupId>org.sonatype.plugins</groupId>
136-
<artifactId>nexus-staging-maven-plugin</artifactId>
137-
<version>1.6.13</version>
131+
<groupId>org.sonatype.central</groupId>
132+
<artifactId>central-publishing-maven-plugin</artifactId>
133+
<version>0.8.0</version>
138134
<extensions>true</extensions>
139135
<configuration>
140-
<serverId>ossrh</serverId>
141-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
142-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
136+
<publishingServerId>central</publishingServerId>
137+
<tokenAuth>true</tokenAuth>
138+
<autoPublish>false</autoPublish>
143139
</configuration>
144140
</plugin>
145141
<plugin>

0 commit comments

Comments
 (0)