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 33 xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
44 <servers >
55 <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 >
99 </server >
1010 </servers >
1111
1212 <profiles >
1313 <profile >
14- <id >ossrh </id >
14+ <id >central </id >
1515 <activation >
1616 <activeByDefault >true</activeByDefault >
1717 </activation >
Original file line number Diff line number Diff line change 5959 -s ${{ github.workspace }}/.github/settings.xml
6060 fi
6161 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 }}
6464 GPG_KEY_ID : ${{ secrets.GPG_KEY_ID }}
6565 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
6666 VERSIONING_EXTENSION_LOG : true
Original file line number Diff line number Diff line change 4848 <tag >HEAD</tag >
4949 </scm >
5050
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 >
6351
6452 <dependencyManagement >
6553 <dependencies >
259247 </executions >
260248 </plugin >
261249
262- <!-- Deploy plugin -->
250+ <!-- Central Publishing Plugin -->
263251 <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 >
267255 <extensions >true</extensions >
268256 <configuration >
269- <serverId >ossrh</serverId >
270- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
271- <autoReleaseAfterClose >true</autoReleaseAfterClose >
257+ <publishingServerId >central</publishingServerId >
258+ <autoPublish >true</autoPublish >
272259 </configuration >
273260 </plugin >
274261 <plugin >
You can’t perform that action at this time.
0 commit comments