Skip to content

Commit b2a3db1

Browse files
cirrasfourls
authored andcommitted
Migrate from OSSRH to the Central Portal
1 parent 7aaba19 commit b2a3db1

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -20,16 +20,16 @@ jobs:
2020
with:
2121
distribution: 'temurin'
2222
java-version: '17'
23-
server-id: ossrh
24-
server-username: MAVEN_USERNAME
25-
server-password: MAVEN_CENTRAL_TOKEN
23+
server-id: central
24+
server-username: MAVEN_CENTRAL_PORTAL_USERNAME
25+
server-password: MAVEN_CENTRAL_PORTAL_PASSWORD
2626
gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2727
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2828
- name: Publish to Maven Central
2929
run: mvn deploy -DskipTests -Prelease --batch-mode --no-transfer-progress
3030
env:
31-
MAVEN_USERNAME: ${{ secrets.OSSRH_USERNAME }}
32-
MAVEN_CENTRAL_TOKEN: ${{ secrets.OSSRH_TOKEN }}
31+
MAVEN_CENTRAL_PORTAL_USERNAME: ${{ secrets.MAVEN_CENTRAL_PORTAL_USERNAME }}
32+
MAVEN_CENTRAL_PORTAL_PASSWORD: ${{ secrets.MAVEN_CENTRAL_PORTAL_PASSWORD }}
3333
MAVEN_GPG_PASSPHRASE: ${{ secrets.MAVEN_GPG_PASSPHRASE }}
3434
- name: Get version from tag
3535
id: get-version

pom.xml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@
148148
<source-plugin.version>3.3.0</source-plugin.version>
149149
<javadoc-plugin.version>3.6.3</javadoc-plugin.version>
150150
<gpg-plugin.version>3.1.0</gpg-plugin.version>
151-
<nexus-staging-plugin.version>1.6.13</nexus-staging-plugin.version>
151+
<central-publishing-plugin.version>0.8.0</central-publishing-plugin.version>
152152
</properties>
153153

154154
<dependencyManagement>
@@ -534,14 +534,14 @@
534534
</executions>
535535
</plugin>
536536
<plugin>
537-
<groupId>org.sonatype.plugins</groupId>
538-
<artifactId>nexus-staging-maven-plugin</artifactId>
539-
<version>${nexus-staging-plugin.version}</version>
537+
<groupId>org.sonatype.central</groupId>
538+
<artifactId>central-publishing-maven-plugin</artifactId>
539+
<version>${central-publishing-plugin.version}</version>
540540
<extensions>true</extensions>
541541
<configuration>
542-
<serverId>ossrh</serverId>
543-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
544-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
542+
<publishingServerId>central</publishingServerId>
543+
<autoPublish>true</autoPublish>
544+
<waitUntil>published</waitUntil>
545545
</configuration>
546546
</plugin>
547547
</plugins>

0 commit comments

Comments
 (0)