File tree Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Expand file tree Collapse file tree 2 files changed +9
-11
lines changed Original file line number Diff line number Diff line change 42
42
with :
43
43
distribution : ' adopt'
44
44
java-version : 21
45
- server-id : ' ossrh '
46
- server-username : OSSRH_USERNAME
47
- server-password : OSSRH_PASSWORD
45
+ server-id : ' central '
46
+ server-username : PUBLISHER_USERNAME
47
+ server-password : PUBLISHER_PASSWORD
48
48
gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
49
49
gpg-passphrase : MAVEN_GPG_PASSPHRASE
50
50
82
82
- name : Publish to Apache Maven Central
83
83
run : mvn deploy -DskipTests
84
84
env :
85
- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
86
- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
85
+ PUBLISHER_USERNAME : ${{ secrets.PUBLISHER_USERNAME }}
86
+ PUBLISHER_PASSWORD : ${{ secrets.PUBLISHER_PASSWORD }}
87
87
MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
88
88
89
89
- name : Notify Slack
Original file line number Diff line number Diff line change 217
217
</executions >
218
218
</plugin >
219
219
<plugin >
220
- <groupId >org.sonatype.plugins </groupId >
221
- <artifactId >nexus-staging -maven-plugin</artifactId >
222
- <version >1.7 .0</version >
220
+ <groupId >org.sonatype.central </groupId >
221
+ <artifactId >central-publishing -maven-plugin</artifactId >
222
+ <version >0.8 .0</version >
223
223
<extensions >true</extensions >
224
224
<configuration >
225
- <serverId >ossrh</serverId >
226
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
227
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
225
+ <autoPublish >true</autoPublish >
228
226
</configuration >
229
227
</plugin >
230
228
<!-- Use spotless plugin to automatically format code, remove unused import, etc
You can’t perform that action at this time.
0 commit comments