Skip to content

Commit 86187a6

Browse files
committed
GH-1245 - Switch to Maven Central deployment.
1 parent 734b6a2 commit 86187a6

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
@@ -264,15 +264,12 @@ limitations under the License.
264264
</configuration>
265265
</plugin>
266266
<plugin>
267-
<groupId>org.sonatype.plugins</groupId>
268-
<artifactId>nexus-staging-maven-plugin</artifactId>
269-
<version>1.7.0</version>
270-
<extensions>true</extensions>
267+
<groupId>org.sonatype.central</groupId>
268+
<artifactId>central-publishing-maven-plugin</artifactId>
271269
<configuration>
272-
<serverId>sonatype-new</serverId>
273-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
274-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
275-
<keepStagingRepositoryOnFailure>true</keepStagingRepositoryOnFailure>
270+
<deploymentName>Spring Modulith ${project.version}</deploymentName>
271+
<publishingServerId>central-ossrh</publishingServerId>
272+
<autoPublish>true</autoPublish>
276273
</configuration>
277274
</plugin>
278275
</plugins>
@@ -587,6 +584,12 @@ limitations under the License.
587584
<artifactId>exec-maven-plugin</artifactId>
588585
<version>3.5.0</version>
589586
</plugin>
587+
<plugin>
588+
<groupId>org.sonatype.central</groupId>
589+
<artifactId>central-publishing-maven-plugin</artifactId>
590+
<version>0.8.0</version>
591+
<extensions>true</extensions>
592+
</plugin>
590593
</plugins>
591594
</pluginManagement>
592595

@@ -700,7 +703,7 @@ limitations under the License.
700703
<url>https://github.com/spring-projects/spring-modulith</url>
701704
<connection>scm:git:https://github.com/spring-projects/spring-modulith</connection>
702705
<developerConnection>scm:git:ssh://[email protected]/spring-projects-experimental/spring-modulith</developerConnection>
703-
<tag>1.4.0</tag>
706+
<tag>main</tag>
704707
</scm>
705708

706709
<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)