Skip to content

Commit 889e5b8

Browse files
committed
spring-projectsGH-123 - Switch to Maven Central for deployment.
1 parent 8c739f9 commit 889e5b8

File tree

3 files changed

+15
-10
lines changed

3 files changed

+15
-10
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ 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 }}
31+
SONATYPE_USER: ${{ secrets.CENTRAL_TOKEN_USERNAME }}
32+
SONATYPE_PASSWORD: ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3333
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3434
run: |
3535
./mvnw -B clean install -DskipTests

pom.xml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -181,14 +181,19 @@
181181
<passphrase>${env.GPG_PASSPHRASE}</passphrase>
182182
</configuration>
183183
</plugin>
184+
<plugin>
185+
<groupId>org.sonatype.central</groupId>
186+
<artifactId>central-publishing-maven-plugin</artifactId>
187+
<version>0.9.0</version>
188+
<extensions>true</extensions>
189+
<configuration>
190+
<deploymentName>Spring Plugin ${project.version}</deploymentName>
191+
<publishingServerId>central-ossrh</publishingServerId>
192+
<autoPublish>true</autoPublish>
193+
</configuration>
194+
</plugin>
184195
</plugins>
185196
</build>
186-
<distributionManagement>
187-
<repository>
188-
<id>sonatype-new</id>
189-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url>
190-
</repository>
191-
</distributionManagement>
192197
</profile>
193198

194199
<profile>
@@ -392,7 +397,6 @@
392397
</execution>
393398
</executions>
394399
</plugin>
395-
396400
<plugin>
397401
<groupId>org.apache.maven.plugins</groupId>
398402
<artifactId>maven-release-plugin</artifactId>
@@ -403,6 +407,7 @@
403407
<pushChanges>false</pushChanges>
404408
<tagNameFormat>@{project.version}</tagNameFormat>
405409
<localCheckout>true</localCheckout>
410+
<signTag>true</signTag>
406411
</configuration>
407412
</plugin>
408413

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)