File tree Expand file tree Collapse file tree 2 files changed +15
-21
lines changed Expand file tree Collapse file tree 2 files changed +15
-21
lines changed Original file line number Diff line number Diff line change @@ -14,16 +14,17 @@ jobs:
1414 runs-on : ubuntu-latest
1515 steps :
1616 - name : Checkout sources
17- uses : actions/checkout@v2
17+ uses : actions/checkout@v4
1818
1919 - name : Set up Maven Central repository
20- uses : actions/setup-java@v3
20+ uses : actions/setup-java@v4
2121 with :
2222 java-version : ' 11'
2323 distribution : ' temurin'
24- server-id : ossrh
25- server-username : MAVEN_USERNAME # env variable to use for username in release
26- server-password : MAVEN_PASSWORD # env variable to use for password in release
24+ # See https://central.sonatype.org/publish/publish-portal-maven/
25+ server-id : central
26+ server-username : CENTRAL_USERNAME # env variable to use for username in release
27+ server-password : CENTRAL_PASSWORD # env variable to use for password in release
2728 gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
2829 gpg-passphrase : MAVEN_GPG_PASSPHRASE # env variable to use for passphrase in release
2930
3738 mvn -B -Dpassword=${{ secrets.GITHUB_TOKEN }} release:prepare
3839 mvn -B release:perform
3940 env :
40- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
41- MAVEN_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
41+ CENTRAL_USERNAME : ${{ secrets.CENTRAL_USERNAME }}
42+ CENTRAL_PASSWORD : ${{ secrets.CENTRAL_PASSWORD }}
4243 MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
Original file line number Diff line number Diff line change 119119 </execution >
120120 </executions >
121121 </plugin >
122+ <!-- https://central.sonatype.org/publish/publish-portal-maven/ -->
122123 <plugin >
123- <groupId >org.sonatype.plugins </groupId >
124- <artifactId >nexus-staging -maven-plugin</artifactId >
125- <version >1.6.13 </version >
124+ <groupId >org.sonatype.central </groupId >
125+ <artifactId >central-publishing -maven-plugin</artifactId >
126+ <version >0.7.0 </version >
126127 <extensions >true</extensions >
127128 <configuration >
128- <serverId >ossrh</serverId >
129- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
130- <autoReleaseAfterClose >true</autoReleaseAfterClose >
131- <stagingProgressTimeoutMinutes >10</stagingProgressTimeoutMinutes >
129+ <publishingServerId >central</publishingServerId >
130+ <autoPublish >true</autoPublish >
131+ <waitUntil >published</waitUntil >
132132 </configuration >
133133 </plugin >
134134 <plugin >
239239 </profile >
240240 </profiles >
241241
242- <distributionManagement >
243- <snapshotRepository >
244- <id >ossrh</id >
245- <url >https://oss.sonatype.org/content/repositories/snapshots</url >
246- </snapshotRepository >
247- </distributionManagement >
248-
249242 <developers >
250243 <developer >
251244 <name >Robin Stocker</name >
You can’t perform that action at this time.
0 commit comments