Skip to content

Commit 776828e

Browse files
committed
Add Sonatype central publishing and skip Maven deploy
Introduces the central-publishing-maven-plugin for artifact deployment to Sonatype Central and configures the maven-deploy-plugin to be skipped. This streamlines the publishing process and ensures artifacts are published using the new plugin.
1 parent 0bb1852 commit 776828e

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

pom.xml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,38 @@
533533
</plugin>
534534
</plugins>
535535
</pluginManagement>
536+
537+
<plugins>
538+
<plugin>
539+
<groupId>org.apache.maven.plugins</groupId>
540+
<artifactId>maven-deploy-plugin</artifactId>
541+
<version>3.1.2</version>
542+
<configuration>
543+
<skip>true</skip>
544+
</configuration>
545+
</plugin>
546+
<plugin>
547+
<groupId>org.sonatype.central</groupId>
548+
<artifactId>central-publishing-maven-plugin</artifactId>
549+
<version>0.8.0</version>
550+
<executions>
551+
<execution>
552+
<id>deploy-artifacts</id>
553+
<phase>deploy</phase>
554+
<goals>
555+
<goal>publish</goal>
556+
</goals>
557+
</execution>
558+
</executions>
559+
<extensions>true</extensions>
560+
<configuration>
561+
<publishingServerId>central</publishingServerId>
562+
<deploymentName>Nitrite - ${project.version}</deploymentName>
563+
<autoPublish>true</autoPublish>
564+
<waitUntil>published</waitUntil>
565+
</configuration>
566+
</plugin>
567+
</plugins>
536568
</build>
537569

538570
<repositories>

0 commit comments

Comments
 (0)