Skip to content

Commit

Permalink
Only enable gpg and nexus plugin in release profile
Browse files Browse the repository at this point in the history
  • Loading branch information
bernd committed Nov 10, 2023
1 parent cee1644 commit 811c0f0
Showing 1 changed file with 36 additions and 29 deletions.
65 changes: 36 additions & 29 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -54,35 +54,6 @@
<goals>deploy</goals>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<keyname>B1606F22</keyname>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</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>
<pluginManagement>
<plugins>
Expand All @@ -107,6 +78,42 @@
</extensions>
</build>
<profiles>
<profile>
<id>release</id>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<keyname>B1606F22</keyname>
</configuration>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.13</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>
<profile>
<id>its</id>
<build>
Expand Down

0 comments on commit 811c0f0

Please sign in to comment.