File tree Expand file tree Collapse file tree 2 files changed +15
-21
lines changed Expand file tree Collapse file tree 2 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ jobs:
14
14
runs-on : ubuntu-latest
15
15
steps :
16
16
- name : Checkout sources
17
- uses : actions/checkout@v2
17
+ uses : actions/checkout@v4
18
18
19
19
- name : Set up Maven Central repository
20
- uses : actions/setup-java@v3
20
+ uses : actions/setup-java@v4
21
21
with :
22
22
java-version : ' 11'
23
23
distribution : ' temurin'
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 -Dpassword=${{ secrets.GITHUB_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 119
119
</execution >
120
120
</executions >
121
121
</plugin >
122
+ <!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
122
123
<plugin >
123
- <groupId >org.sonatype.plugins </groupId >
124
- <artifactId >nexus-staging -maven-plugin</artifactId >
125
- <version >1.6.13 </version >
124
+ <groupId >org.sonatype.central </groupId >
125
+ <artifactId >central-publishing -maven-plugin</artifactId >
126
+ <version >0.7.0 </version >
126
127
<extensions >true</extensions >
127
128
<configuration >
128
- <serverId >ossrh</serverId >
129
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
130
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
131
- <stagingProgressTimeoutMinutes >10</stagingProgressTimeoutMinutes >
129
+ <publishingServerId >central</publishingServerId >
130
+ <autoPublish >true</autoPublish >
131
+ <waitUntil >published</waitUntil >
132
132
</configuration >
133
133
</plugin >
134
134
<plugin >
239
239
</profile >
240
240
</profiles >
241
241
242
- <distributionManagement >
243
- <snapshotRepository >
244
- <id >ossrh</id >
245
- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
246
- </snapshotRepository >
247
- </distributionManagement >
248
-
249
242
<developers >
250
243
<developer >
251
244
<name >Robin Stocker</name >
You can’t perform that action at this time.
0 commit comments