Skip to content

Commit bd3c3f9

Browse files
authored
Use central-publishing-maven-plugin (#171)
1 parent 4cfce46 commit bd3c3f9

File tree

2 files changed

+6
-18
lines changed

2 files changed

+6
-18
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
java-version: '11'
4040
distribution: 'temurin'
41-
server-id: ossrh
41+
server-id: central
4242
server-username: MAVEN_USERNAME
4343
server-password: MAVEN_PASSWORD
4444
gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }}

pom.xml

Lines changed: 5 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -52,17 +52,6 @@ under the License.
5252
<url>https://github.com/getindata/flink-http-connector/tree/main</url>
5353
</scm>
5454

55-
<distributionManagement>
56-
<snapshotRepository>
57-
<id>ossrh</id>
58-
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
59-
</snapshotRepository>
60-
<repository>
61-
<id>ossrh</id>
62-
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
63-
</repository>
64-
</distributionManagement>
65-
6655
<properties>
6756
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
6857

@@ -541,14 +530,13 @@ under the License.
541530
</plugin>
542531

543532
<plugin>
544-
<groupId>org.sonatype.plugins</groupId>
545-
<artifactId>nexus-staging-maven-plugin</artifactId>
546-
<version>1.6.13</version>
533+
<groupId>org.sonatype.central</groupId>
534+
<artifactId>central-publishing-maven-plugin</artifactId>
535+
<version>0.8.0</version>
547536
<extensions>true</extensions>
548537
<configuration>
549-
<serverId>ossrh</serverId>
550-
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
551-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
538+
<publishingServerId>central</publishingServerId>
539+
<autoPublish>true</autoPublish>
552540
</configuration>
553541
</plugin>
554542

0 commit comments

Comments
 (0)