Skip to content

Commit b6ce0fa

Browse files
cushongoogle-java-format Team
authored andcommitted
Migrate to Sonatype Maven Central releases
PiperOrigin-RevId: 781199945
1 parent 4c96ea4 commit b6ce0fa

File tree

1 file changed

+11
-7
lines changed

1 file changed

+11
-7
lines changed

pom.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@
9494
<auto-service.version>1.0.1</auto-service.version>
9595
<maven-javadoc-plugin.version>3.6.3</maven-javadoc-plugin.version>
9696
<maven-source-plugin.version>3.2.1</maven-source-plugin.version>
97+
<central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version>
9798
</properties>
9899

99100
<dependencyManagement>
@@ -301,21 +302,24 @@
301302
<distributionManagement>
302303
<snapshotRepository>
303304
<id>sonatype-nexus-snapshots</id>
304-
<name>Sonatype Nexus Snapshots</name>
305-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
305+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
306306
</snapshotRepository>
307-
<repository>
308-
<id>sonatype-nexus-staging</id>
309-
<name>Nexus Release Repository</name>
310-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
311-
</repository>
312307
</distributionManagement>
313308

314309
<profiles>
315310
<profile>
316311
<id>sonatype-oss-release</id>
317312
<build>
318313
<plugins>
314+
<plugin>
315+
<groupId>org.sonatype.central</groupId>
316+
<artifactId>central-publishing-maven-plugin</artifactId>
317+
<version>${central-publishing-maven-plugin.version}</version>
318+
<extensions>true</extensions>
319+
<configuration>
320+
<publishingServerId>central</publishingServerId>
321+
</configuration>
322+
</plugin>
319323
<plugin>
320324
<groupId>org.apache.maven.plugins</groupId>
321325
<artifactId>maven-source-plugin</artifactId>

0 commit comments

Comments
 (0)