|
6 | 6 |
|
7 | 7 | <groupId>io.github.rahulsinghai</groupId> |
8 | 8 | <artifactId>jmeter.backendlistener.kafka</artifactId> |
9 | | - <version>1.0.0</version> |
| 9 | + <version>1.0.1-SNAPSHOT</version> |
10 | 10 | <packaging>jar</packaging> |
11 | 11 |
|
12 | 12 | <name>${project.artifactId}</name> |
|
60 | 60 | <maven.jacoco.plugin.version>0.8.4</maven.jacoco.plugin.version> |
61 | 61 | <maven.javadoc.plugin.version>3.1.0</maven.javadoc.plugin.version> |
62 | 62 | <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> |
63 | 64 | <maven.shade.plugin.version>3.2.1</maven.shade.plugin.version> |
64 | 65 | <maven.source.plugin.version>3.1.0</maven.source.plugin.version> |
65 | 66 | <maven.surefire.plugin.version>3.0.0-M3</maven.surefire.plugin.version> |
|
155 | 156 | </repository> |
156 | 157 | </distributionManagement> |
157 | 158 |
|
| 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 | + --> |
158 | 171 | <profiles> |
159 | 172 | <profile> |
160 | 173 | <id>release-sign-artifacts</id> |
|
189 | 202 |
|
190 | 203 | <build> |
191 | 204 | <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 | + |
192 | 216 | <plugin> |
193 | 217 | <groupId>org.sonatype.plugins</groupId> |
194 | 218 | <artifactId>nexus-staging-maven-plugin</artifactId> |
|
0 commit comments