Skip to content

Commit 2154e70

Browse files
committed
GH-1310 - Switch to Maven Central deployment.
1 parent d7959d4 commit 2154e70

File tree

3 files changed

+15
-12
lines changed

3 files changed

+15
-12
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
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3434
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_SECRET_ACCESS_KEY }}
3535
run: |

pom.xml

Lines changed: 12 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -261,15 +261,12 @@ limitations under the License.
261261
</configuration>
262262
</plugin>
263263
<plugin>
264-
<groupId>org.sonatype.plugins</groupId>
265-
<artifactId>nexus-staging-maven-plugin</artifactId>
266-
<version>1.7.0</version>
267-
<extensions>true</extensions>
264+
<groupId>org.sonatype.central</groupId>
265+
<artifactId>central-publishing-maven-plugin</artifactId>
268266
<configuration>
269-
<serverId>sonatype-new</serverId>
270-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
271-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
272-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
267+
<deploymentName>Spring Modulith ${project.version}</deploymentName>
268+
<publishingServerId>central-ossrh</publishingServerId>
269+
<autoPublish>true</autoPublish>
273270
</configuration>
274271
</plugin>
275272
</plugins>
@@ -536,6 +533,12 @@ limitations under the License.
536533
<artifactId>exec-maven-plugin</artifactId>
537534
<version>3.5.0</version>
538535
</plugin>
536+
<plugin>
537+
<groupId>org.sonatype.central</groupId>
538+
<artifactId>central-publishing-maven-plugin</artifactId>
539+
<version>0.8.0</version>
540+
<extensions>true</extensions>
541+
</plugin>
539542
</plugins>
540543
</pluginManagement>
541544

@@ -649,7 +652,7 @@ limitations under the License.
649652
<url>https://github.com/spring-projects/spring-modulith</url>
650653
<connection>scm:git:https://github.com/spring-projects/spring-modulith</connection>
651654
<developerConnection>scm:git:ssh://git@github.com/spring-projects-experimental/spring-modulith</developerConnection>
652-
<tag>main</tag>
655+
<tag>1.4.x</tag>
653656
</scm>
654657

655658
<repositories>

settings.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<servers>
66

77
<server>
8-
<id>sonatype-new</id>
8+
<id>central-ossrh</id>
99
<username>${env.SONATYPE_USER}</username>
1010
<password>${env.SONATYPE_PASSWORD}</password>
1111
</server>

0 commit comments

Comments
 (0)