Skip to content

Commit c14787f

Browse files
committed
Bumping next snapshot version
1 parent c7e21e4 commit c14787f

File tree

1 file changed

+25
-1
lines changed

1 file changed

+25
-1
lines changed

pom.xml

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>io.github.rahulsinghai</groupId>
88
<artifactId>jmeter.backendlistener.kafka</artifactId>
9-
<version>1.0.0</version>
9+
<version>1.0.1-SNAPSHOT</version>
1010
<packaging>jar</packaging>
1111

1212
<name>${project.artifactId}</name>
@@ -60,6 +60,7 @@
6060
<maven.jacoco.plugin.version>0.8.4</maven.jacoco.plugin.version>
6161
<maven.javadoc.plugin.version>3.1.0</maven.javadoc.plugin.version>
6262
<maven.nexus.staging.plugin.version>1.6.8</maven.nexus.staging.plugin.version>
63+
<maven.release.plugin.version>2.5.3</maven.release.plugin.version>
6364
<maven.shade.plugin.version>3.2.1</maven.shade.plugin.version>
6465
<maven.source.plugin.version>3.1.0</maven.source.plugin.version>
6566
<maven.surefire.plugin.version>3.0.0-M3</maven.surefire.plugin.version>
@@ -155,6 +156,18 @@
155156
</repository>
156157
</distributionManagement>
157158

159+
<!--
160+
The plugin configuration for maven-gpg-plugin is wrapped inside a profile.
161+
Usually when you build SNAPSHOT version, you don't want to sign the artifacts, because it's
162+
unnecessary and time-consuming.
163+
Artifact signing is only necessary when it's time to release project.
164+
So, we wrap the plugin configuration with a profile, which will only be activated on project
165+
releasing.
166+
167+
This profile will be activated when the value of maven property performRelease is true.
168+
When you use maven-release-plugin and run mvn release:perform, the property value will be
169+
set to true.
170+
-->
158171
<profiles>
159172
<profile>
160173
<id>release-sign-artifacts</id>
@@ -189,6 +202,17 @@
189202

190203
<build>
191204
<plugins>
205+
<plugin>
206+
<groupId>org.apache.maven.plugins</groupId>
207+
<artifactId>maven-release-plugin</artifactId>
208+
<version>${maven.release.plugin.version}</version>
209+
<configuration>
210+
<tagNameFormat>v@{project.version}</tagNameFormat>
211+
<autoVersionSubmodules>true</autoVersionSubmodules>
212+
<releaseProfiles>release-sign-artifacts</releaseProfiles>
213+
</configuration>
214+
</plugin>
215+
192216
<plugin>
193217
<groupId>org.sonatype.plugins</groupId>
194218
<artifactId>nexus-staging-maven-plugin</artifactId>

0 commit comments

Comments
 (0)