File tree 2 files changed +9
-23
lines changed
2 files changed +9
-23
lines changed Original file line number Diff line number Diff line change 28
28
with :
29
29
java-version : 11
30
30
distribution : ' temurin'
31
- server-id : ossrh
31
+ server-id : central
32
32
server-username : MAVEN_USERNAME
33
33
server-password : MAVEN_CENTRAL_TOKEN
34
34
gpg-private-key : ${{ secrets.java_gpg_secret_key }}
63
63
run : |
64
64
mvn --batch-mode clean deploy -Prelease -DskipTests=true -X
65
65
env :
66
- MAVEN_USERNAME : ${{ secrets.ossrh_username }}
67
- MAVEN_CENTRAL_TOKEN : ${{ secrets.ossrh_password }}
66
+ MAVEN_USERNAME : ${{ secrets.sonatype_username }}
67
+ MAVEN_CENTRAL_TOKEN : ${{ secrets.sonatype_password }}
68
68
MAVEN_GPG_PASSPHRASE : ${{ secrets.java_gpg_passphrase }}
69
69
70
70
- name : Back to Snapshot
Original file line number Diff line number Diff line change 36
36
<url >https://github.com/StyraInc/opa-java-wasm.git</url >
37
37
</scm >
38
38
39
- <distributionManagement >
40
- <repository >
41
- <id >ossrh</id >
42
- <name >Central Repository OSSRH</name >
43
- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
44
- </repository >
45
- </distributionManagement >
46
-
47
39
<properties >
48
40
<maven .compiler.source>11</maven .compiler.source>
49
41
<maven .compiler.target>11</maven .compiler.target>
184
176
<profiles >
185
177
<profile >
186
178
<id >release</id >
187
- <distributionManagement >
188
- <snapshotRepository >
189
- <id >ossrh</id >
190
- <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
191
- </snapshotRepository >
192
- </distributionManagement >
193
179
<build >
194
180
<plugins >
195
181
<plugin >
213
199
</executions >
214
200
</plugin >
215
201
<plugin >
216
- <groupId >org.sonatype.plugins </groupId >
217
- <artifactId >nexus-staging -maven-plugin</artifactId >
218
- <version >${nexus-staging-maven-plugin.version} </version >
202
+ <groupId >org.sonatype.central </groupId >
203
+ <artifactId >central-publishing -maven-plugin</artifactId >
204
+ <version >0.7.0 </version >
219
205
<extensions >true</extensions >
220
206
<configuration >
221
- <serverId >ossrh</ serverId >
222
- <nexusUrl >https://s01.oss.sonatype.org/</ nexusUrl >
223
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
207
+ <publishingServerId >central</ publishingServerId >
208
+ <waitUntil >published</ waitUntil >
209
+ <autoPublish >true</autoPublish >
224
210
</configuration >
225
211
</plugin >
226
212
</plugins >
You can’t perform that action at this time.
0 commit comments