Skip to content

Commit 298fe68

Browse files
cpovirkJimfs Team
authored andcommitted
Migrate to central-publishing-maven-plugin.
This should deal with the new Sonatype part of #401. It is based closely on cl/781199945. I will also update the CI repository secrets at https://github.com/google/jimfs/settings/secrets/actions as described in https://central.sonatype.org/publish/generate-portal-token/. I expect to need that for releases (since we still produce them on our local machines), so I put the text it generated into my `.m2/settings.xml`. However, I notice that it produces the literal output `<id>${server}</id>`, which seems iffy. I am trying changing it to `central`, and we'll see what happens when I try to publish a release. (I will eventually have to do something similar for my `.gradle/gradle.properties` for _JSpecify_ releases.) RELNOTES=n/a PiperOrigin-RevId: 782079419
1 parent d95ec02 commit 298fe68

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
@@ -82,14 +82,9 @@
8282
<distributionManagement>
8383
<snapshotRepository>
8484
<id>sonatype-nexus-snapshots</id>
85-
<name>Sonatype Nexus Snapshots</name>
86-
<url>https://oss.sonatype.org/content/repositories/snapshots/</url>
85+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
86+
8787
</snapshotRepository>
88-
<repository>
89-
<id>sonatype-nexus-staging</id>
90-
<name>Nexus Release Repository</name>
91-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
92-
</repository>
9388
</distributionManagement>
9489

9590
<properties>
@@ -380,6 +375,15 @@
380375
</execution>
381376
</executions>
382377
</plugin>
378+
<plugin>
379+
<groupId>org.sonatype.central</groupId>
380+
<artifactId>central-publishing-maven-plugin</artifactId>
381+
<version>0.8.0</version>
382+
<extensions>true</extensions>
383+
<configuration>
384+
<publishingServerId>central</publishingServerId>
385+
</configuration>
386+
</plugin>
383387
</plugins>
384388
</build>
385389
</profile>

0 commit comments

Comments
 (0)