Skip to content

Commit cf66b46

Browse files
committed
GH-2347 - Switch to Maven central repository hosting for releases.
1 parent e568a50 commit cf66b46

3 files changed

Lines changed: 15 additions & 11 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,9 @@ jobs:
2828
2929
- name: Release to Sonatype OSSRH
3030
env:
31-
SONATYPE_USER: ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
32-
SONATYPE_PASSWORD: ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
33-
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
31+
SONATYPE_USER: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
32+
SONATYPE_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
33+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3434
run: |
3535
./mvnw -B clean install -DskipTests
3636
./mvnw -B clean deploy -Pci,sonatype -s settings.xml

pom.xml

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -211,15 +211,13 @@
211211
</configuration>
212212
</plugin>
213213
<plugin>
214-
<groupId>org.sonatype.plugins</groupId>
215-
<artifactId>nexus-staging-maven-plugin</artifactId>
216-
<version>1.7.0</version>
214+
<groupId>org.sonatype.central</groupId>
215+
<artifactId>central-publishing-maven-plugin</artifactId>
217216
<extensions>true</extensions>
218217
<configuration>
219-
<serverId>sonatype-new</serverId>
220-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
221-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
222-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
218+
<deploymentName>Spring HATEOAS ${project.version}</deploymentName>
219+
<publishingServerId>central-ossrh</publishingServerId>
220+
<autoPublish>true</autoPublish>
223221
</configuration>
224222
</plugin>
225223
</plugins>
@@ -717,6 +715,12 @@
717715
</links>
718716
</configuration>
719717
</plugin>
718+
<plugin>
719+
<groupId>org.sonatype.central</groupId>
720+
<artifactId>central-publishing-maven-plugin</artifactId>
721+
<version>0.10.0</version>
722+
<extensions>true</extensions>
723+
</plugin>
720724
</plugins>
721725
</pluginManagement>
722726

settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44

55
<servers>
66
<server>
7-
<id>sonatype-new</id>
7+
<id>central-ossrh</id>
88
<username>${env.SONATYPE_USER}</username>
99
<password>${env.SONATYPE_PASSWORD}</password>
1010
</server>

0 commit comments

Comments
 (0)