Skip to content

Commit fe9e91c

Browse files
committed
Switch to central-publishing-maven-plugin
As of June 30, 2025 OSSRH has reached end of life.
1 parent c827397 commit fe9e91c

2 files changed

Lines changed: 6 additions & 16 deletions

File tree

.github/workflows/build.yml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,12 @@ jobs:
2323
java-version: ${{ matrix.java }}
2424
cache: 'maven'
2525
# these values cause the plugin to set up the Maven settings.xml file
26-
server-id: ossrh # Value of the distributionManagement/repository/id field of the pom.xml
27-
server-username: SONATYPE_USERNAME # env variable for username in deploy
28-
server-password: SONATYPE_PASSWORD # env variable for token in deploy
26+
server-id: central
27+
server-username: SONATYPE_USERNAME
28+
server-password: SONATYPE_PASSWORD
2929
- name: Get version
3030
run: echo "PROJECT_VERSION=$(mvn help:evaluate -Dexpression=project.version -q -DforceStdout)" >> $GITHUB_ENV
3131
- name: Build
32-
env:
33-
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
34-
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3532
run: mvn -V -B --no-transfer-progress -P jacoco checkstyle:check spotbugs:check verify
3633
- name: Deploy SNAPSHOT
3734
# must run directly after 'Build'

pom.xml

Lines changed: 3 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -51,14 +51,6 @@ GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
5151
<url>https://travis-ci.com/aherbert/gdsc-core</url>
5252
</ciManagement>
5353
<distributionManagement>
54-
<snapshotRepository>
55-
<id>ossrh</id>
56-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
57-
</snapshotRepository>
58-
<repository>
59-
<id>ossrh</id>
60-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
61-
</repository>
6254
<site>
6355
<id>${project.artifactId}-site</id>
6456
<url>file://${parent.dir}/mvn-repo</url>
@@ -72,8 +64,9 @@ GDSC SMLM ImageJ Plugins - Single molecule localisation microscopy (SMLM)
7264
</mailingLists>
7365
<repositories>
7466
<repository>
75-
<id>snapshots-repo</id>
76-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
67+
<name>Central Portal Snapshots</name>
68+
<id>central-portal-snapshots</id>
69+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
7770
<releases>
7871
<enabled>false</enabled>
7972
</releases>

0 commit comments

Comments
 (0)