File tree Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Expand file tree Collapse file tree 2 files changed +9
-20
lines changed Original file line number Diff line number Diff line change 19
19
uses : actions/setup-java@v3
20
20
with :
21
21
java-version : " 21"
22
- distribution : " adopt "
23
- server-id : ossrh
22
+ distribution : " temurin "
23
+ server-id : central
24
24
server-username : MVN_CENTRAL_USERNAME
25
25
server-password : MVN_CENTRAL_PASSWORD
26
26
gpg-private-key : ${{ secrets.GPG_SECRET_KEY }}
54
54
55
55
- name : Step 6 - Publish package
56
56
run : |
57
- mvn -Dmaven.test.skip=true -P release -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
57
+ mvn -B --no-transfer-progress - Dmaven.test.skip=true -Drevision=${{ steps.gitversion.outputs.semVer }} deploy
58
58
env :
59
59
MVN_CENTRAL_USERNAME : ${{ secrets.OSSRH_USERNAME }}
60
60
MVN_CENTRAL_PASSWORD : ${{ secrets.OSSRH_TOKEN }}
Original file line number Diff line number Diff line change 19
19
<revision >5.0.0-SNAPSHOT</revision >
20
20
</properties >
21
21
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
-
33
22
<scm >
34
23
<
connection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
connection >
35
24
<
developerConnection >scm:git:
[email protected] :aquality-automation/aquality-appium-mobile-java.git</
developerConnection >
172
161
</executions >
173
162
</plugin >
174
163
<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 >
178
167
<extensions >true</extensions >
179
168
<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 >
183
172
</configuration >
184
173
</plugin >
185
174
</plugins >
You can’t perform that action at this time.
0 commit comments