Switch to Sonatype Central Publishing Portal · docker-java/docker-java@7fabc1b · GitHub | Latest TMZ Celebrity News & Gossip | Watch TMZ Live
Skip to content

Commit 7fabc1b

Browse files
committed
Switch to Sonatype Central Publishing Portal
1 parent 20f0831 commit 7fabc1b

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.github/workflows/release.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff 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

pom.xml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,16 @@
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>
@@ -297,6 +307,9 @@
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

@@ -308,6 +321,13 @@
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>

0 commit comments

Comments
 (0)

TMZ Celebrity News – Breaking Stories, Videos & Gossip

Looking for the latest TMZ celebrity news? You've come to the right place. From shocking Hollywood scandals to exclusive videos, TMZ delivers it all in real time.

Whether it’s a red carpet slip-up, a viral paparazzi moment, or a legal drama involving your favorite stars, TMZ news is always first to break the story. Stay in the loop with daily updates, insider tips, and jaw-dropping photos.

🎥 Watch TMZ Live

TMZ Live brings you daily celebrity news and interviews straight from the TMZ newsroom. Don’t miss a beat—watch now and see what’s trending in Hollywood.