Skip to content

Commit 8004dd5

Browse files
authored
feat: fix pom.xml to fix CI for publishing to https://central.sonatype.com (#34)
1 parent 5325b93 commit 8004dd5

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
@@ -21,7 +21,7 @@
2121
<licenses>
2222
<license>
2323
<name>The Apache Software License, Version 2.0</name>
24-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
24+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
2525
<distribution>repo</distribution>
2626
</license>
2727
</licenses>
@@ -46,12 +46,8 @@
4646
<distributionManagement>
4747
<snapshotRepository>
4848
<id>ossrh</id>
49-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
49+
<url>https://central.sonatype.com</url>
5050
</snapshotRepository>
51-
<repository>
52-
<id>ossrh</id>
53-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54-
</repository>
5551
</distributionManagement>
5652

5753
<dependencies>
@@ -150,15 +146,15 @@
150146
</plugin>
151147
<plugin>
152148
<!-- Automatically close and deploy from OSSRH -->
153-
<groupId>org.sonatype.plugins</groupId>
154-
<artifactId>nexus-staging-maven-plugin</artifactId>
155-
<version>1.6.7</version>
149+
<groupId>org.sonatype.central</groupId>
150+
<artifactId>central-publishing-maven-plugin</artifactId>
151+
<version>0.5.0</version>
156152
<extensions>true</extensions>
157153
<configuration>
158-
<serverId>ossrh</serverId>
159-
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
154+
<publishingServerId>ossrh</publishingServerId>
155+
<tokenAuth>true</tokenAuth>
160156
<!-- Release versions will be synced to Maven Central automatically. -->
161-
<autoReleaseAfterClose>true</autoReleaseAfterClose>
157+
<autoPublish>true</autoPublish>
162158
</configuration>
163159
</plugin>
164160
<plugin>

0 commit comments

Comments
 (0)