Skip to content

Commit 51a7583

Browse files
authored
feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com (#76)
1 parent 8e86da1 commit 51a7583

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

pom.xml

+8-12
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<licenses>
2727
<license>
2828
<name>The Apache Software License, Version 2.0</name>
29-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
29+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
3030
<distribution>repo</distribution>
3131
</license>
3232
</licenses>
@@ -50,12 +50,8 @@
5050
<distributionManagement>
5151
<snapshotRepository>
5252
<id>ossrh</id>
53-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
53+
<url>https://central.sonatype.com</url>
5454
</snapshotRepository>
55-
<repository>
56-
<id>ossrh</id>
57-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
58-
</repository>
5955
</distributionManagement>
6056

6157
<build>
@@ -147,15 +143,15 @@
147143
</plugin>
148144
<plugin>
149145
<!-- Automatically close and deploy from OSSRH -->
150-
<groupId>org.sonatype.plugins</groupId>
151-
<artifactId>nexus-staging-maven-plugin</artifactId>
152-
<version>1.6.7</version>
146+
<groupId>org.sonatype.central</groupId>
147+
<artifactId>central-publishing-maven-plugin</artifactId>
148+
<version>0.5.0</version>
153149
<extensions>true</extensions>
154150
<configuration>
155-
<serverId>ossrh</serverId>
156-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
151+
<publishingServerId>ossrh</publishingServerId>
152+
<tokenAuth>true</tokenAuth>
157153
<!-- Release versions will be synced to Maven Central automatically. -->
158-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
154+
<autoPublish>true</autoPublish>
159155
</configuration>
160156
</plugin>
161157
<plugin>

0 commit comments

Comments
 (0)