Skip to content

Commit

Permalink
feat: fix pom.xml to fix CI for publishing to https://central.sonatyp…
Browse files Browse the repository at this point in the history
  • Loading branch information
liewstar authored Sep 27, 2024
1 parent 8e86da1 commit 51a7583
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
<licenses>
<license>
<name>The Apache Software License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
<distribution>repo</distribution>
</license>
</licenses>
Expand All @@ -50,12 +50,8 @@
<distributionManagement>
<snapshotRepository>
<id>ossrh</id>
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
<url>https://central.sonatype.com</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
</repository>
</distributionManagement>

<build>
Expand Down Expand Up @@ -147,15 +143,15 @@
</plugin>
<plugin>
<!-- Automatically close and deploy from OSSRH -->
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<publishingServerId>ossrh</publishingServerId>
<tokenAuth>true</tokenAuth>
<!-- Release versions will be synced to Maven Central automatically. -->
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
<plugin>
Expand Down

0 comments on commit 51a7583

Please sign in to comment.