Skip to content

Commit 5c2e177

Browse files
committed
fix(build): migrate to sonatype central
1 parent f26a058 commit 5c2e177

File tree

2 files changed

+9
-13
lines changed

2 files changed

+9
-13
lines changed

.github/workflows/maven-deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040

4141
- name: 'Set up Maven settings'
4242
run: |
43-
echo "<settings><interactiveMode>false</interactiveMode><servers><server><id>ossrh</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers></settings>" > ./settings.xml
43+
echo "<settings><interactiveMode>false</interactiveMode><servers><server><id>sonatype-central</id><username>${{ secrets.OSSRH_USERNAME }}</username><password>${{ secrets.OSSRH_PASSWORD }}</password></server></servers></settings>" > ./settings.xml
4444
4545
- name: 'Deploy Maven Central'
4646
run: |

pom.xml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -58,13 +58,9 @@
5858
<url>https://github.com/streamthoughts/kafka-connect-file-pulse</url>
5959

6060
<distributionManagement>
61-
<snapshotRepository>
62-
<id>ossrh</id>
63-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
64-
</snapshotRepository>
6561
<repository>
66-
<id>ossrh</id>
67-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
62+
<id>sonatype-central</id>
63+
<url>https://central.sonatype.com/api/v1/publisher/maven</url>
6864
</repository>
6965
</distributionManagement>
7066

@@ -412,14 +408,14 @@
412408
</executions>
413409
</plugin>
414410
<plugin>
415-
<groupId>org.sonatype.plugins</groupId>
416-
<artifactId>nexus-staging-maven-plugin</artifactId>
417-
<version>1.7.0</version>
411+
<groupId>org.sonatype.central</groupId>
412+
<artifactId>central-publishing-maven-plugin</artifactId>
413+
<version>0.7.0</version>
418414
<extensions>true</extensions>
419415
<configuration>
420-
<serverId>ossrh</serverId>
421-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
422-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
416+
<publishingServerId>sonatype-central</publishingServerId>
417+
<autoPublish>true</autoPublish>
418+
<waitUntil>published</waitUntil>
423419
</configuration>
424420
</plugin>
425421
<plugin>

0 commit comments

Comments
 (0)