Skip to content

Commit cc54434

Browse files
committed
Update deployment infrastructure to publish to Central Portal
See https://central.sonatype.org/news/20250326_ossrh_sunset/ The OSSRH service is reaching end-of-life on June 30th, 2025. This updates the build infrastructure to allow this component and generally any living on the `org.openmicroscopy` namespace to use the Central Portal for publishing
1 parent ee7fb4c commit cc54434

1 file changed

Lines changed: 12 additions & 23 deletions

File tree

pom.xml

Lines changed: 12 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -85,16 +85,6 @@
8585
<system>Jenkins</system>
8686
<url>https://ci.openmicroscopy.org/</url>
8787
</ciManagement>
88-
<distributionManagement>
89-
<snapshotRepository>
90-
<id>ossrh</id>
91-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
92-
</snapshotRepository>
93-
<repository>
94-
<id>ossrh</id>
95-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
96-
</repository>
97-
</distributionManagement>
9888

9989
<dependencies>
10090
<dependency>
@@ -434,24 +424,12 @@
434424
<id>release</id>
435425
<build>
436426
<plugins>
437-
<!-- Stage releases with nexus -->
438-
<plugin>
439-
<groupId>org.sonatype.plugins</groupId>
440-
<artifactId>nexus-staging-maven-plugin</artifactId>
441-
<version>1.6.8</version>
442-
<extensions>true</extensions>
443-
<configuration>
444-
<serverId>ossrh</serverId>
445-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
446-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
447-
</configuration>
448-
</plugin>
449427

450428
<!-- gpg release signing -->
451429
<plugin>
452430
<groupId>org.apache.maven.plugins</groupId>
453431
<artifactId>maven-gpg-plugin</artifactId>
454-
<version>1.6</version>
432+
<version>3.2.7</version>
455433
<executions>
456434
<execution>
457435
<id>sign-artifacts</id>
@@ -462,6 +440,17 @@
462440
</execution>
463441
</executions>
464442
</plugin>
443+
444+
<plugin>
445+
<groupId>org.sonatype.central</groupId>
446+
<artifactId>central-publishing-maven-plugin</artifactId>
447+
<version>0.8.0</version>
448+
<extensions>true</extensions>
449+
<configuration>
450+
<publishingServerId>central</publishingServerId>
451+
<tokenAuth>true</tokenAuth>
452+
</configuration>
453+
</plugin>
465454
</plugins>
466455
</build>
467456
</profile>

0 commit comments

Comments
 (0)