File tree Expand file tree Collapse file tree 2 files changed +15
-25
lines changed Expand file tree Collapse file tree 2 files changed +15
-25
lines changed Original file line number Diff line number Diff line change @@ -19,11 +19,12 @@ jobs:
19
19
- name : Set up Maven Central repository
20
20
uses : actions/setup-java@v4
21
21
with :
22
- java-version : 11
22
+ java-version : 24
23
23
distribution : ' zulu'
24
- server-id : ossrh
25
- server-username : MAVEN_USERNAME # env variable to use for username in release
26
- server-password : MAVEN_PASSWORD # env variable to use for password in release
24
+ # See https://central.sonatype.org/publish/publish-portal-maven/
25
+ server-id : central
26
+ server-username : CENTRAL_USERNAME # env variable to use for username in release
27
+ server-password : CENTRAL_PASSWORD # env variable to use for password in release
27
28
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
28
29
gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable to use for passphrase in release
29
30
37
38
mvn -B -Dusername=${{ secrets.GH_USERNAME }} -Dpassword=${{ secrets.GH_ACCESS_TOKEN }} release:prepare
38
39
mvn -B release:perform
39
40
env :
40
- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
41
- MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
41
+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
42
+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
42
43
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 85
85
</pluginManagement >
86
86
87
87
<plugins >
88
+ <!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
88
89
<plugin >
89
- <groupId >org.sonatype.plugins </groupId >
90
- <artifactId >nexus-staging -maven-plugin</artifactId >
91
- <version >1.6.13 </version >
90
+ <groupId >org.sonatype.central </groupId >
91
+ <artifactId >central-publishing -maven-plugin</artifactId >
92
+ <version >0.8.0 </version >
92
93
<extensions >true</extensions >
93
94
<configuration >
94
- <serverId >ossrh</serverId >
95
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
96
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
97
- <stagingProgressTimeoutMinutes >10</stagingProgressTimeoutMinutes >
95
+ <publishingServerId >central</publishingServerId >
96
+ <autoPublish >true</autoPublish >
97
+ <waitUntil >published</waitUntil >
98
98
</configuration >
99
99
</plugin >
100
100
<plugin >
101
101
<groupId >org.apache.maven.plugins</groupId >
102
102
<artifactId >maven-release-plugin</artifactId >
103
- <version >3.0 .1</version >
103
+ <version >3.1 .1</version >
104
104
<configuration >
105
105
<autoVersionSubmodules >true</autoVersionSubmodules >
106
106
<useReleaseProfile >false</useReleaseProfile >
307
307
<tag >HEAD</tag >
308
308
</scm >
309
309
310
- <distributionManagement >
311
- <snapshotRepository >
312
- <id >ossrh</id >
313
- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
314
- </snapshotRepository >
315
- <repository >
316
- <id >ossrh</id >
317
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
318
- </repository >
319
- </distributionManagement >
320
-
321
310
</project >
You can’t perform that action at this time.
0 commit comments