File tree Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Expand file tree Collapse file tree 2 files changed +20
-17
lines changed Original file line number Diff line number Diff line change @@ -90,17 +90,21 @@ jobs:
9090 distribution : liberica
9191 java-version : 17
9292 cache : maven
93+ server-id : central
94+ server-username : CENTRAL_USERNAME
95+ server-password : CENTRAL_PASSWORD
96+ gpg-private-key : ${{ secrets.SIGNING_KEY }}
97+ gpg-passphrase : GPG_PASSPHRASE
9398
9499 - name : Grant execute permission for mvnw
95100 run : chmod +x mvnw
96101
97102 - name : Release Maven package
98- uses : samuelmeuli/action-maven-publish@v1
99- with :
100- gpg_private_key : ${{ secrets.SIGNING_KEY }}
101- gpg_passphrase : ${{ secrets.SIGNING_PASSWORD }}
102- nexus_username : ${{ secrets.OSSRH_USERNAME }}
103- nexus_password : ${{ secrets.OSSRH_PASSWORD }}
103+ run : mvn -B -e -ntp -Pdeploy deploy
104+ env :
105+ CENTRAL_USERNAME : ${{ secrets.OSSRH_USERNAME }}
106+ CENTRAL_PASSWORD : ${{ secrets.OSSRH_PASSWORD }}
107+ GPG_PASSPHRASE : ${{ secrets.SIGNING_PASSWORD }}
104108
105109 - name : Upload reports
106110 if : failure()
Original file line number Diff line number Diff line change 107107 </execution >
108108 </executions >
109109 </plugin >
110+ <plugin >
111+ <groupId >org.sonatype.central</groupId >
112+ <artifactId >central-publishing-maven-plugin</artifactId >
113+ <version >0.8.0</version >
114+ <extensions >true</extensions >
115+ <configuration >
116+ <publishingServerId >central</publishingServerId >
117+ <autoPublish >true</autoPublish >
118+ </configuration >
119+ </plugin >
110120 </plugins >
111121 </build >
112122 </profile >
140150 </execution >
141151 </executions >
142152 </plugin >
143- <plugin >
144- <groupId >org.sonatype.plugins</groupId >
145- <artifactId >nexus-staging-maven-plugin</artifactId >
146- <version >${nexus-staging-plugin.version} </version >
147- <extensions >true</extensions >
148- <configuration >
149- <serverId >ossrh</serverId >
150- <nexusUrl >https://oss.sonatype.org/</nexusUrl >
151- <autoReleaseAfterClose >true</autoReleaseAfterClose >
152- </configuration >
153- </plugin >
154153 <plugin >
155154 <groupId >org.codehaus.mojo</groupId >
156155 <artifactId >versions-maven-plugin</artifactId >
You can’t perform that action at this time.
0 commit comments