Skip to content

Commit

Permalink
Configure gpg plugin and nexus-staging plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed May 29, 2024
1 parent 6bbfb99 commit 77e0cf8
Showing 1 changed file with 17 additions and 24 deletions.
41 changes: 17 additions & 24 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -245,35 +245,15 @@
</profile>

<profile>
<id>publish-distr</id>
<activation>
<activeByDefault>false</activeByDefault>
</activation>
<build>
<plugins>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<skipTests>true</skipTests>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<profile>
<id>release-sign-artifacts</id>
<activation>
<property>
<name>performRelease</name>
<value>true</value>
</property>
</activation>
<id>release</id>
<build>
<plugins>
<plugin>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<configuration>
<keyname>B1606F22</keyname>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
Expand All @@ -284,6 +264,19 @@
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.7.0</version>
<extensions>true</extensions>
<configuration>
<serverId>sonatype-nexus-staging</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>true</autoReleaseAfterClose>
<autoDropAfterRelease>true</autoDropAfterRelease>
</configuration>
</plugin>
</plugins>
</build>
</profile>
Expand Down

0 comments on commit 77e0cf8

Please sign in to comment.