Skip to content

Commit

Permalink
Prepare pom for Maven Central
Browse files Browse the repository at this point in the history
  • Loading branch information
Dario Mauri committed May 6, 2024
1 parent 265eb2a commit ce6fddd
Showing 1 changed file with 10 additions and 21 deletions.
31 changes: 10 additions & 21 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<maven-source.version>3.3.1</maven-source.version>
<maven-javadoc.version>3.6.3</maven-javadoc.version>
<maven-gpg.version>3.2.4</maven-gpg.version>
<nexus-staging-maven.version>1.6.13</nexus-staging-maven.version>
<central-publishing-maven.version>0.4.0</central-publishing-maven.version>

<!-- third party dependencies -->
<spring-boot.version>3.2.5</spring-boot.version>
Expand Down Expand Up @@ -128,35 +128,24 @@
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>${nexus-staging-maven.version}</version>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>${central-publishing-maven.version}</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://s01.oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<publishingServerId>central</publishingServerId>
<tokenAuth>true</tokenAuth>
<autoPublish>true</autoPublish>
</configuration>
</plugin>
</plugins>
</build>

<distributionManagement>
<!-- GitHub Packages -->
<!-- <repository>-->
<!-- <id>github</id>-->
<!-- <name>GitHub Packages</name>-->
<!-- <url>https://maven.pkg.github.com/dario-mr/time-it</url>-->
<!-- </repository>-->

<!-- Maven Central -->
<snapshotRepository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/content/repositories/snapshots</url>
</snapshotRepository>
<repository>
<id>ossrh</id>
<url>https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/</url>
<id>github</id>
<name>GitHub Packages</name>
<url>https://maven.pkg.github.com/dario-mr/time-it</url>
</repository>
</distributionManagement>

Expand Down

0 comments on commit ce6fddd

Please sign in to comment.