File tree Expand file tree Collapse file tree 2 files changed +27
-5
lines changed
Expand file tree Collapse file tree 2 files changed +27
-5
lines changed Original file line number Diff line number Diff line change @@ -16,15 +16,17 @@ jobs:
1616 with :
1717 java-version : 8
1818 distribution : temurin
19- server-id : default
19+ server-id : central
2020 server-username : MAVEN_USERNAME
2121 server-password : MAVEN_CENTRAL_TOKEN
22+ gpg-private-key : ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
23+ gpg-passphrase : MAVEN_GPG_PASSPHRASE
2224 - name : Set version
2325 run : ./mvnw versions:set -DnewVersion="${{github.event.release.tag_name}}"
2426 # TODO check main's CI status
2527 - name : Deploy with Maven
2628 env :
27- MAVEN_DEPLOYMENT_REPOSITORY : ${{ secrets.MAVEN_DEPLOYMENT_REPOSITORY }}
28- MAVEN_USERNAME : ${{ secrets.OSSRH_USERNAME }}
29- MAVEN_CENTRAL_TOKEN : ${{ secrets.OSSRH_PASSWORD }}
30- run : ./mvnw deploy -DaltReleaseDeploymentRepository="$MAVEN_DEPLOYMENT_REPOSITORY" -DskipTests
29+ MAVEN_USERNAME : ${{ secrets.SONATYPE_CENTRAL_USERNAME }}
30+ MAVEN_CENTRAL_TOKEN : ${{ secrets.SONATYPE_CENTRAL_PASSWORD }}
31+ MAVEN_GPG_PASSPHRASE : ${{ secrets.MAVEN_GPG_PASSPHRASE }}
32+ run : ./mvnw -Prelease deploy -DskipTests
Original file line number Diff line number Diff line change 286286 </execution >
287287 </executions >
288288 </plugin >
289+ <plugin >
290+ <groupId >org.sonatype.central</groupId >
291+ <artifactId >central-publishing-maven-plugin</artifactId >
292+ <version >0.8.0</version >
293+ <extensions >true</extensions >
294+ <configuration >
295+ <publishingServerId >central</publishingServerId >
296+ <excludeArtifacts >docker-java-transport-tck</excludeArtifacts >
297+ </configuration >
298+ </plugin >
289299 </plugins >
290300 </pluginManagement >
291301 <plugins >
297307 <groupId >org.apache.maven.plugins</groupId >
298308 <artifactId >maven-javadoc-plugin</artifactId >
299309 </plugin >
310+ <plugin >
311+ <groupId >org.sonatype.central</groupId >
312+ <artifactId >central-publishing-maven-plugin</artifactId ></plugin >
300313 </plugins >
301314 </build >
302315
308321 <plugin >
309322 <groupId >org.apache.maven.plugins</groupId >
310323 <artifactId >maven-gpg-plugin</artifactId >
324+ <configuration >
325+ <!-- Prevent gpg from using pinentry programs -->
326+ <gpgArguments >
327+ <arg >--pinentry-mode</arg >
328+ <arg >loopback</arg >
329+ </gpgArguments >
330+ </configuration >
311331 <executions >
312332 <execution >
313333 <id >sign-artifacts</id >
You can’t perform that action at this time.
0 commit comments