8000 Migrate to central-publishing-maven-plugin · roterski/java-sdk@c78c1ad · GitHub
[go: up one dir, main page]

Skip to content

Commit c78c1ad

Browse files
committed
Migrate to central-publishing-maven-plugin
1 parent 1a506d0 commit c78c1ad

File tree

3 files changed

+8
-31
lines changed

3 files changed

+8
-31
lines changed

.github/workflows/continuous-integration.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
java-version: '17'
1919
distribution: 'temurin'
2020
cache: 'maven'
21-
server-id: ossrh
21+
server-id: central
2222
server-username: MAVEN_USERNAME
2323
server-password: MAVEN_PASSWORD
2424
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}

.github/workflows/maven-central-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
java-version: '17'
1919
distribution: 'temurin'
2020
cache: 'maven'
21-
server-id: ossrh
21+
server-id: central
2222
server-username: MAVEN_USERNAME
2323
server-password: MAVEN_PASSWORD
2424
gpg-private-key: ${{ secrets.GPG_SECRET_KEY }}

pom.xml

Lines changed: 6 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -50,13 +50,6 @@
5050
<system>Github Actions</system>
5151
<url>https://github.com/modelcontextprotocol/java-sdk/actions</url>
5252
</ciManagement>
53-
<distributionManagement>
54-
<repository>
55-
<id>os 10000 srh</id>
56-
<name>Central Repository OSSRH</name>
57-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
58-
</repository>
59-
</distributionManagement>
6053

6154
<properties>
6255
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -300,19 +293,13 @@
300293
<build>
301294
<plugins>
302295
<plugin>
303-
<groupId>org.sonatype.plugins</groupId>
304-
<artifactId>nexus-staging-maven-plugin</artifactId>
305-
<version>1.7.0</version>
296+
<groupId>org.sonatype.central</groupId>
297+
<artifactId>central-publishing-maven-plugin</artifactId>
298+
<version>0.7.0</version>
306299
<extensions>true</extensions>
307300
<configuration>
308-
<serverId>ossrh</serverId>
309-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
310-
<!--
311-
the property autoReleaseAfterClose set to false you can manually inspect the staging repository in
312-
the Nexus Repository Manager and trigger a release of the staging
313-
repository later
314-
-->
315-
<autoReleaseAfterClose>false</autoReleaseAfterClose>
301+
<publishingServerId>central</publishingServerId>
302+
<autoPublish>false</autoPublish>
316303
</configuration>
317304
</plugin>
318305
<plugin>
@@ -338,16 +325,6 @@
338325
</plugin>
339326
</plugins>
340327
</build>
341-
<distributionManagement>
342-
<snapshotRepository>
343-
<id>ossrh</id>
344-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
345-
</snapshotRepository>
346-
<repository>
347-
<id>ossrh</id>
348-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
349-
</repository>
350-
</distributionManagement>
351328
</profile>
352329
</profiles>
353330

@@ -385,4 +362,4 @@
385362
</repository>
386363
</repositories>
387364

388-
</project>
365+
</project>

0 commit comments

Comments
 (0)
0