File tree Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Expand file tree Collapse file tree 2 files changed +8
-19
lines changed Original file line number Diff line number Diff line change 2020 with :
2121 java-version : " 21"
2222 distribution : " adopt"
23- server-id : ossrh
23+ server-id : central
2424 server-username : MVN_CENTRAL_USERNAME
2525 server-password : MVN_CENTRAL_PASSWORD
2626 gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
5454
5555 - name : Step 6 - Publish package
5656 run : |
57- mvn -Dmaven.test.skip=true -P release - Drevision=${{ steps.gitversion.outputs.semVer }} deploy
57+ mvn -Dmaven.test.skip=true -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
5858 env :
5959 MVN_CENTRAL_USERNAME : ${{ secrets.OSSRH_USERNAME }}
6060 MVN_CENTRAL_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 1919 <revision >5.0.0-SNAPSHOT</revision >
2020 </properties >
2121
22- <distributionManagement >
23- <snapshotRepository >
24- <id >ossrh</id >
25- <url >https://s01.oss.sonatype.org/content/repositories/snapshots</url >
26- </snapshotRepository >
27- <repository >
28- <id >ossrh</id >
29- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url >
30- </repository >
31- </distributionManagement >
32-
3322 <scm >
3423 <
connection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
connection >
3524 <
developerConnection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
developerConnection >
172161 </executions >
173162 </plugin >
174163 <plugin >
175- <groupId >org.sonatype.plugins </groupId >
176- <artifactId >nexus-staging -maven-plugin</artifactId >
177- <version >1.7 .0</version >
164+ <groupId >org.sonatype.central </groupId >
165+ <artifactId >central-publishing -maven-plugin</artifactId >
166+ <version >0.8 .0</version >
178167 <extensions >true</extensions >
179168 <configuration >
180- <serverId >ossrh</ serverId >
181- <nexusUrl >https://s01.oss.sonatype.org/</ nexusUrl >
182- <autoReleaseAfterClose >true</ autoReleaseAfterClose >
169+ <publishingServerId >central</ publishingServerId >
170+ <autoPublish >true</ autoPublish >
171+ <waitUntil >published</ waitUntil >
183172 </configuration >
184173 </plugin >
185174 </plugins >
You can’t perform that action at this time.
0 commit comments