Skip to content

Commit 7436828

Browse files
Poggeccicopybara-github
authored andcommitted
chore: Migrate from OSSRH to Maven Central Publishing
PiperOrigin-RevId: 783500840
1 parent ed78259 commit 7436828

File tree

1 file changed

+14
-16
lines changed

1 file changed

+14
-16
lines changed

pom.xml

Lines changed: 14 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -179,16 +179,14 @@
179179
</executions>
180180
</plugin>
181181
<plugin>
182-
<groupId>org.sonatype.plugins</groupId>
183-
<artifactId>nexus-staging-maven-plugin</artifactId>
184-
<version>1.7.0</version>
185-
<extensions>true</extensions>
186-
<configuration>
187-
<serverId>ossrh</serverId>
188-
<nexusUrl>https://google.oss.sonatype.org/</nexusUrl>
189-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
190-
</configuration>
191-
</plugin>
182+
<groupId>org.sonatype.central</groupId>
183+
<artifactId>central-publishing-maven-plugin</artifactId>
184+
<version>0.8.0</version>
185+
<extensions>true</extensions>
186+
<configuration>
187+
<publishingServerId>central</publishingServerId>
188+
</configuration>
189+
</plugin>
192190
</plugins>
193191
</pluginManagement>
194192
<plugins>
@@ -301,14 +299,14 @@
301299
</developers>
302300
<distributionManagement>
303301
<repository>
304-
<id>ossrh</id>
305-
<name>Central Repository OSSRH</name>
306-
<url>https://google.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
302+
<id>central</id>
303+
<name>Maven Central Repository</name>
304+
<url>https://central.sonatype.com</url>
307305
</repository>
308306
<snapshotRepository>
309-
<id>ossrh</id>
310-
<name>Central Repository OSSRH for snapshots</name>
311-
<url>https://google.oss.sonatype.org/content/repositories/snapshots</url>
307+
<id>central</id>
308+
<name>Maven Central Repository Snapshots</name>
309+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
312310
</snapshotRepository>
313311
</distributionManagement>
314312
</project>

0 commit comments

Comments
 (0)