File tree Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Expand file tree Collapse file tree 3 files changed +12
-25
lines changed Original file line number Diff line number Diff line change 3
3
xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
4
4
<servers >
5
5
<server >
6
- <id >ossrh </id >
7
- <username >${env.OSSRH_USERNAME }</username >
8
- <password >${env.OSSRH_PASSWORD }</password >
6
+ <id >central </id >
7
+ <username >${env.SONATYPE_USERNAME }</username >
8
+ <password >${env.SONATYPE_PASSWORD }</password >
9
9
</server >
10
10
</servers >
11
11
12
12
<profiles >
13
13
<profile >
14
- <id >ossrh </id >
14
+ <id >central </id >
15
15
<activation >
16
16
<activeByDefault >true</activeByDefault >
17
17
</activation >
Original file line number Diff line number Diff line change 59
59
-s ${{ github.workspace }}/.github/settings.xml
60
60
fi
61
61
env :
62
- OSSRH_USERNAME : ${{ secrets.OSSRH_USERNAME }}
63
- OSSRH_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
62
+ SONATYPE_USERNAME : ${{ secrets.SONATYPE_USERNAME }}
63
+ SONATYPE_PASSWORD : ${{ secrets.SONATYPE_PASSWORD }}
64
64
GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
65
65
GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
66
66
VERSIONING_EXTENSION_LOG : true
Original file line number Diff line number Diff line change 48
48
<tag >HEAD</tag >
49
49
</scm >
50
50
51
- <distributionManagement >
52
- <snapshotRepository >
53
- <id >ossrh</id >
54
- <name >Sonatype Nexus Snapshots</name >
55
- <url >https://oss.sonatype.org/content/repositories/snapshots/</url >
56
- </snapshotRepository >
57
- <repository >
58
- <id >ossrh</id >
59
- <name >Nexus Release Repository</name >
60
- <url >https://oss.sonatype.org/service/local/staging/deploy/maven2/</url >
61
- </repository >
62
- </distributionManagement >
63
51
64
52
<dependencyManagement >
65
53
<dependencies >
259
247
</executions >
260
248
</plugin >
261
249
262
- <!-- Deploy plugin -->
250
+ <!-- Central Publishing Plugin -->
263
251
<plugin >
264
- <groupId >org.sonatype.plugins </groupId >
265
- <artifactId >nexus-staging -maven-plugin</artifactId >
266
- <version >1.6.8 </version >
252
+ <groupId >org.sonatype.central </groupId >
253
+ <artifactId >central-publishing -maven-plugin</artifactId >
254
+ <version >0.8.0 </version >
267
255
<extensions >true</extensions >
268
256
<configuration >
269
- <serverId >ossrh</serverId >
270
- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
271
- <autoReleaseAfterClose >true</autoReleaseAfterClose >
257
+ <publishingServerId >central</publishingServerId >
258
+ <autoPublish >true</autoPublish >
272
259
</configuration >
273
260
</plugin >
274
261
<plugin >
You can’t perform that action at this time.
0 commit comments