diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index a9bc8fd..1306cdf 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -18,7 +18,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: 'maven' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml index 87b338c..4418440 100644 --- a/.github/workflows/maven-central-release.yml +++ b/.github/workflows/maven-central-release.yml @@ -18,7 +18,7 @@ jobs: java-version: '17' distribution: 'temurin' cache: 'maven' - server-id: ossrh + server-id: central server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} diff --git a/pom.xml b/pom.xml index 4115541..d1bdc29 100644 --- a/pom.xml +++ b/pom.xml @@ -50,13 +50,6 @@ Github Actions https://github.com/modelcontextprotocol/java-sdk/actions - - - ossrh - Central Repository OSSRH - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - UTF-8 @@ -300,19 +293,13 @@ - org.sonatype.plugins - nexus-staging-maven-plugin - 1.7.0 + org.sonatype.central + central-publishing-maven-plugin + 0.7.0 true - ossrh - https://s01.oss.sonatype.org/ - - false + central + false @@ -338,16 +325,6 @@ - - - ossrh - https://s01.oss.sonatype.org/content/repositories/snapshots - - - ossrh - https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ - - @@ -385,4 +362,4 @@ - + \ No newline at end of file