Skip to content

Commit 1f293b8

Browse files
authored
feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com (#8)
1 parent 02a11ef commit 1f293b8

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

pom.xml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
<licenses>
1717
<license>
1818
<name>The Apache Software License, Version 2.0</name>
19-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
19+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
2020
<distribution>repo</distribution>
2121
</license>
2222
</licenses>
@@ -40,12 +40,8 @@
4040
<distributionManagement>
4141
<snapshotRepository>
4242
<id>ossrh</id>
43-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
43+
<url>https://central.sonatype.com</url>
4444
</snapshotRepository>
45-
<repository>
46-
<id>ossrh</id>
47-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
48-
</repository>
4945
</distributionManagement>
5046

5147
<properties>
@@ -253,15 +249,15 @@
253249
</plugin>
254250
<plugin>
255251
<!-- Automatically close and deploy from OSSRH -->
256-
<groupId>org.sonatype.plugins</groupId>
257-
<artifactId>nexus-staging-maven-plugin</artifactId>
258-
<version>${nexus-staging-maven-plugin.version}</version>
252+
<groupId>org.sonatype.central</groupId>
253+
<artifactId>central-publishing-maven-plugin</artifactId>
254+
<version>0.5.0</version>
259255
<extensions>true</extensions>
260256
<configuration>
261-
<serverId>ossrh</serverId>
262-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
257+
<publishingServerId>ossrh</publishingServerId>
258+
<tokenAuth>true</tokenAuth>
263259
<!-- Release versions will be synced to Maven Central automatically. -->
264-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
260+
<autoPublish>true</autoPublish>
265261
</configuration>
266262
</plugin>
267263
<plugin>

0 commit comments

Comments
 (0)