Skip to content

Commit 552b343

Browse files
committed
chore(deploy): Migrate from OSSRH to Central Publisher Portal
Motivation: The OSSRH will reach EOL on June 30th, 2025. To continue publishing to Maven Central, migration to the Central Publisher Portal is required. Modifications: Migrated the publishing configuration from OSSRH to the Central Publisher Portal. Results: Ensured uinterrupted deployments post-OSSRH EOL.
1 parent 64ad31a commit 552b343

File tree

3 files changed

+18
-17
lines changed

3 files changed

+18
-17
lines changed

.github/workflows/cd-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -118,9 +118,9 @@ jobs:
118118
with:
119119
servers: |
120120
[{
121-
"id": "ossrh-staging",
122-
"username": "${{ secrets.OSSRH_USERNAME }}",
123-
"password": "${{ secrets.OSSRH_PASSWORD }}"
121+
"id": "central",
122+
"username": "${{ secrets.CENTRAL_USERNAME }}",
123+
"password": "${{ secrets.CENTRAL_PASSWORD }}"
124124
}]
125125
126126
- name: Create Local Deploy Directory

.github/workflows/cd-snapshot.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ jobs:
4646
with:
4747
servers: |
4848
[{
49-
"id": "ossrh-snapshots",
50-
"username": "${{ secrets.OSSRH_USERNAME }}",
51-
"password": "${{ secrets.OSSRH_PASSWORD }}"
49+
"id": "central-portal-snapshots",
50+
"username": "${{ secrets.CENTRAL_USERNAME }}",
51+
"password": "${{ secrets.CENTRAL_PASSWORD }}"
5252
}]
5353
5454
- name: Prepare Internal Dependencies

r2dbc-mysql/pom.xml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -448,6 +448,14 @@
448448
</includes>
449449
</configuration>
450450
</plugin>
451+
<plugin>
452+
<groupId>org.sonatype.central</groupId>
453+
<artifactId>central-publishing-maven-plugin</artifactId>
454+
<version>0.7.0</version>
455+
<configuration>
456+
<publishingServerId>central</publishingServerId>
457+
</configuration>
458+
</plugin>
451459
</plugins>
452460
<resources>
453461
<resource>
@@ -558,16 +566,9 @@
558566
</repositories>
559567

560568
<distributionManagement>
561-
<repository>
562-
<releases>
563-
<enabled>false</enabled>
564-
</releases>
565-
<snapshots>
566-
<enabled>true</enabled>
567-
</snapshots>
568-
<id>ossrh-snapshots</id>
569-
<name>Sonatype Nexus Snapshots</name>
570-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots/</url>
571-
</repository>
569+
<snapshotRepository>
570+
<id>central-portal-snapshots</id>
571+
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
572+
</snapshotRepository>
572573
</distributionManagement>
573574
</project>

0 commit comments

Comments
 (0)