File tree Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Expand file tree Collapse file tree 2 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -20,16 +20,16 @@ jobs:
20
20
with :
21
21
distribution : ' temurin'
22
22
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
26
26
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
27
27
gpg-passphrase : MAVEN_GPG_PASSPHRASE
28
28
- name : Publish to Maven Central
29
29
run : mvn deploy -DskipTests -Prelease --batch-mode --no-transfer-progress
30
30
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 }}
33
33
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
34
34
- name : Get version from tag
35
35
id : get-version
Original file line number Diff line number Diff line change 148
148
<source-plugin .version>3.3.0</source-plugin .version>
149
149
<javadoc-plugin .version>3.6.3</javadoc-plugin .version>
150
150
<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>
152
152
</properties >
153
153
154
154
<dependencyManagement >
534
534
</executions >
535
535
</plugin >
536
536
<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 >
540
540
<extensions >true</extensions >
541
541
<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 >
545
545
</configuration >
546
546
</plugin >
547
547
</plugins >
You can’t perform that action at this time.
0 commit comments