File tree Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Expand file tree Collapse file tree 2 files changed +14
-17
lines changed Original file line number Diff line number Diff line change @@ -202,9 +202,9 @@ jobs:
202202 with :
203203 distribution : ' temurin'
204204 java-version : ' 21'
205- server-id : ' ossrh '
206- server-username : OSSRH_USERNAME
207- server-password : OSSRH_TOKEN
205+ server-id : ' central '
206+ server-username : SONATYPE_CENTRAL_USERNAME
207+ server-password : SONATYPE_CENTRAL_TOKEN
208208
209209 - name : Cache Maven dependencies
210210 uses : actions/cache@v4
@@ -220,5 +220,5 @@ jobs:
220220 id : maven-build
221221 run : mvn -B -U -ntp source:jar deploy -Dmaven.test.skip=true -Dinvoker.skip=true
222222 env :
223- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
224- OSSRH_TOKEN : ${{ secrets.OSSRH_TOKEN }}
223+ SONATYPE_CENTRAL_USERNAME : ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
224+ SONATYPE_CENTRAL_TOKEN : ${{ secrets.SONATYPE_CENTRAL_TOKEN }}
Original file line number Diff line number Diff line change 4040 <id >github-ssh</id >
4141 <
url >gitsite:
[email protected] /tbroyer/gwt-maven-plugin.git</
url >
4242 </site >
43- <snapshotRepository >
44- <id >ossrh</id >
45- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
46- </snapshotRepository >
4743 </distributionManagement >
4844
4945 <prerequisites >
5248
5349 <repositories >
5450 <repository >
55- <id >ossrh</id >
56- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
51+ <name >Central Portal Snapshots</name >
52+ <id >central-portal-snapshots</id >
53+ <url >https://central.sonatype.com/repository/maven-snapshots/</url >
5754 <releases >
5855 <enabled >false</enabled >
5956 </releases >
348345 </dependencies >
349346 </plugin >
350347 <plugin >
351- <groupId >org.sonatype.plugins </groupId >
352- <artifactId >nexus-staging -maven-plugin</artifactId >
353- <version >1.7 .0</version >
348+ <groupId >org.sonatype.central </groupId >
349+ <artifactId >central-publishing -maven-plugin</artifactId >
350+ <version >0.9 .0</version >
354351 <extensions >true</extensions >
355352 <configuration >
356- <serverId >ossrh</ serverId >
357- <nexusUrl >https://oss.sonatype.org/</ nexusUrl >
358- <autoReleaseAfterClose >true</ autoReleaseAfterClose >
353+ <publishingServerId >central</ publishingServerId >
354+ <autoPublish >true</ autoPublish >
355+ <deploymentName > ${project.artifactId} ${project.version} </ deploymentName >
359356 </configuration >
360357 </plugin >
361358 <plugin >
You can’t perform that action at this time.
0 commit comments