File tree Expand file tree Collapse file tree 3 files changed +15
-10
lines changed
Expand file tree Collapse file tree 3 files changed +15
-10
lines changed 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 }}
31+ SONATYPE_USER : ${{ secrets.CENTRAL_TOKEN_USERNAME }}
32+ SONATYPE_PASSWORD : ${{ secrets.CENTRAL_TOKEN_PASSWORD }}
3333 GPG_PASSPHRASE : ${{ secrets.GPG_PASSPHRASE }}
3434 run : |
3535 ./mvnw -B clean install -DskipTests
Original file line number Diff line number Diff line change 181181 <passphrase >${env.GPG_PASSPHRASE} </passphrase >
182182 </configuration >
183183 </plugin >
184+ <plugin >
185+ <groupId >org.sonatype.central</groupId >
186+ <artifactId >central-publishing-maven-plugin</artifactId >
187+ <version >0.9.0</version >
188+ <extensions >true</extensions >
189+ <configuration >
190+ <deploymentName >Spring Plugin ${project.version} </deploymentName >
191+ <publishingServerId >central-ossrh</publishingServerId >
192+ <autoPublish >true</autoPublish >
193+ </configuration >
194+ </plugin >
184195 </plugins >
185196 </build >
186- <distributionManagement >
187- <repository >
188- <id >sonatype-new</id >
189- <url >https://s01.oss.sonatype.org/service/local/staging/deploy/maven2</url >
190- </repository >
191- </distributionManagement >
192197 </profile >
193198
194199 <profile >
392397 </execution >
393398 </executions >
394399 </plugin >
395-
396400 <plugin >
397401 <groupId >org.apache.maven.plugins</groupId >
398402 <artifactId >maven-release-plugin</artifactId >
403407 <pushChanges >false</pushChanges >
404408 <tagNameFormat >@{project.version}</tagNameFormat >
405409 <localCheckout >true</localCheckout >
410+ <signTag >true</signTag >
406411 </configuration >
407412 </plugin >
408413
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