File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2828
2929 - name : Release to Sonatype OSSRH
3030 env :
31- SONATYPE_USER : ${{ secrets.OSSRH_S01_TOKEN_USERNAME }}
32- SONATYPE_PASSWORD : ${{ secrets.OSSRH_S01_TOKEN_PASSWORD }}
33- GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
31+ SONATYPE_USER : ${{ secrets.CENTRAL_TOKEN_USERNAME }}
32+ SONATYPE_PASSWORD : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
33+ MAVEN_GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
3434 run : |
3535 ./mvnw -B clean install -DskipTests
3636 ./mvnw -B clean deploy -Pci,sonatype -s settings.xml
Original file line number Diff line number Diff line change 211211 </configuration >
212212 </plugin >
213213 <plugin >
214- <groupId >org.sonatype.plugins</groupId >
215- <artifactId >nexus-staging-maven-plugin</artifactId >
216- <version >1.7.0</version >
214+ <groupId >org.sonatype.central</groupId >
215+ <artifactId >central-publishing-maven-plugin</artifactId >
217216 <extensions >true</extensions >
218217 <configuration >
219- <serverId >sonatype-new</serverId >
220- <nexusUrl >https://s01.oss.sonatype.org/</nexusUrl >
221- <autoReleaseAfterClose >true</autoReleaseAfterClose >
222- <keepStagingRepositoryOnFailure >true</keepStagingRepositoryOnFailure >
218+ <deploymentName >Spring HATEOAS ${project.version} </deploymentName >
219+ <publishingServerId >central-ossrh</publishingServerId >
220+ <autoPublish >true</autoPublish >
223221 </configuration >
224222 </plugin >
225223 </plugins >
717715 </links >
718716 </configuration >
719717 </plugin >
718+ <plugin >
719+ <groupId >org.sonatype.central</groupId >
720+ <artifactId >central-publishing-maven-plugin</artifactId >
721+ <version >0.10.0</version >
722+ <extensions >true</extensions >
723+ </plugin >
720724 </plugins >
721725 </pluginManagement >
722726
Original file line number Diff line number Diff line change 44
55 <servers >
66 <server >
7- <id >sonatype-new </id >
7+ <id >central-ossrh </id >
88 <username >${env.SONATYPE_USER}</username >
99 <password >${env.SONATYPE_PASSWORD}</password >
1010 </server >
You can’t perform that action at this time.
0 commit comments