File tree Expand file tree Collapse file tree 3 files changed +26
-47
lines changed
Expand file tree Collapse file tree 3 files changed +26
-47
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,14 @@ jobs:
1414 with :
1515 java-version : ' 8'
1616 distribution : ' temurin'
17- server-id : ossrh
17+ server-id : central-portal
1818 server-username : MAVEN_USERNAME
1919 server-password : MAVEN_PASSWORD
2020
2121 - name : " Publish package"
2222 env :
23- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
24- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
23+ MAVEN_USERNAME : ${{ secrets.CENTRAL_PORTAL_USERNAME }}
24+ MAVEN_PASSWORD : ${{ secrets.CENTRAL_PORTAL_TOKEN }}
2525 run : |
2626 cat <(echo -e "${{ secrets.GPG_PRIVATE_KEY }}") | gpg --batch --import;
2727 mvn clean deploy -P release -Dgpg.passphrase=${{ secrets.GPG_PASSPHRASE }} -DskipTests -B -U
Original file line number Diff line number Diff line change @@ -36,11 +36,11 @@ jobs:
3636 with :
3737 java-version : ' 8'
3838 distribution : ' temurin'
39- server-id : ossrh
39+ server-id : central-portal
4040 server-username : MAVEN_USERNAME
4141 server-password : MAVEN_PASSWORD
4242 - name : Publish package
43- run : mvn --batch-mode -U -Psonatype clean deploy -DskipTests
43+ run : mvn --batch-mode -U -Prelease clean deploy -DskipTests
4444 env :
45- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
46- MAVEN_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
45+ MAVEN_USERNAME : ${{ secrets.CENTRAL_PORTAL_USERNAME }}
46+ MAVEN_PASSWORD : ${{ secrets.CENTRAL_PORTAL_TOKEN }}
Original file line number Diff line number Diff line change 286286 </build >
287287
288288 <profiles >
289- <profile >
290- <id >sonatype</id >
291- <repositories >
292- <repository >
293- <id >nexus-snapshots</id >
294- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
295- <releases >
296- <enabled >false</enabled >
297- </releases >
298- <snapshots >
299- <enabled >true</enabled >
300- <updatePolicy >always</updatePolicy >
301- </snapshots >
302- </repository >
303- <repository >
304- <id >nexus-releases</id >
305- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2</url >
306- <releases >
307- <enabled >true</enabled >
308- </releases >
309- <snapshots >
310- <enabled >false</enabled >
311- </snapshots >
312- </repository >
313- </repositories >
314- </profile >
315- <profile >
316- <id >javadoc-lint</id >
317- <activation >
318- <jdk >[1.8,)</jdk >
319- </activation >
320- <properties >
321- <doclint >none</doclint >
322- </properties >
323- </profile >
324289 <profile >
325290 <id >release</id >
326291 <build >
402367
403368 <distributionManagement >
404369 <snapshotRepository >
405- <id >ossrh</id >
406- <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
407-
370+ <id >central-portal</id >
371+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
408372 </snapshotRepository >
409373 <repository >
410- <id >ossrh </id >
411- <url >https://oss. sonatype.org /service/local/staging/deploy/maven2 /</url >
374+ <id >central-portal </id >
375+ <url >https://ossrh-staging-api.central. sonatype.com /service/local/</url >
412376 </repository >
413377 </distributionManagement >
378+
379+ <repositories >
380+ <repository >
381+ <name >Central Portal Snapshots</name >
382+ <id >central-portal-snapshots</id >
383+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
384+ <releases >
385+ <enabled >false</enabled >
386+ </releases >
387+ <snapshots >
388+ <enabled >true</enabled >
389+ <updatePolicy >always</updatePolicy >
390+ </snapshots >
391+ </repository >
392+ </repositories >
414393</project >
You can’t perform that action at this time.
0 commit comments