|
213 | 213 | <url>https://maven.pkg.github.com/wiremock/wiremock-testcontainers-java</url> |
214 | 214 | </repository> |
215 | 215 | </distributionManagement> |
| 216 | + |
| 217 | + <profiles> |
| 218 | + <profile> |
| 219 | + <id>release</id> |
| 220 | + <properties> |
| 221 | + <version.maven-release-plugin>3.0.0-M7</version.maven-release-plugin> |
| 222 | + <version.maven-gpg-plugin>3.0.1</version.maven-gpg-plugin> |
| 223 | + </properties> |
| 224 | + <build> |
| 225 | + <pluginManagement> |
| 226 | + <plugins> |
| 227 | + <plugin> |
| 228 | + <artifactId>maven-release-plugin</artifactId> |
| 229 | + <version>${version.maven-release-plugin}</version> |
| 230 | + <configuration> |
| 231 | + <tagNameFormat>@{project.version}</tagNameFormat> |
| 232 | + </configuration> |
| 233 | + </plugin> |
| 234 | + <!-- The key's name & passphrase are configured via GitHub's setup-java action. --> |
| 235 | + <plugin> |
| 236 | + <artifactId>maven-gpg-plugin</artifactId> |
| 237 | + <version>${version.maven-gpg-plugin}</version> |
| 238 | + <executions> |
| 239 | + <execution> |
| 240 | + <id>sign-artifacts</id> |
| 241 | + <phase>verify</phase> |
| 242 | + <goals> |
| 243 | + <goal>sign</goal> |
| 244 | + </goals> |
| 245 | + <configuration> |
| 246 | + <!-- This is required to make sure the plugin does not stop asking for --> |
| 247 | + <!-- user input on the passphrase --> |
| 248 | + <gpgArguments> |
| 249 | + <arg>--pinentry-mode</arg> |
| 250 | + <arg>loopback</arg> |
| 251 | + </gpgArguments> |
| 252 | + </configuration> |
| 253 | + </execution> |
| 254 | + </executions> |
| 255 | + </plugin> |
| 256 | + </plugins> |
| 257 | + </pluginManagement> |
| 258 | + <plugins> |
| 259 | + <plugin> |
| 260 | + <artifactId>maven-gpg-plugin</artifactId> |
| 261 | + </plugin> |
| 262 | + </plugins> |
| 263 | + </build> |
| 264 | + </profile> |
| 265 | + <profile> |
| 266 | + <id>mavencentral-release</id> |
| 267 | + <properties> |
| 268 | + <version.nexus-staging-maven-plugin>1.6.13</version.nexus-staging-maven-plugin> |
| 269 | + </properties> |
| 270 | + <distributionManagement> |
| 271 | + <repository> |
| 272 | + <id>ossrh</id> |
| 273 | + <name>Central Repository OSSRH</name> |
| 274 | + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> |
| 275 | + </repository> |
| 276 | + </distributionManagement> |
| 277 | + <build> |
| 278 | + <pluginManagement> |
| 279 | + <plugins> |
| 280 | + <plugin> |
| 281 | + <groupId>org.sonatype.plugins</groupId> |
| 282 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 283 | + <version>${version.nexus-staging-maven-plugin}</version> |
| 284 | + <extensions>true</extensions> |
| 285 | + <configuration> |
| 286 | + <serverId>ossrh</serverId> |
| 287 | + <nexusUrl>https://s01.oss.sonatype.org</nexusUrl> |
| 288 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 289 | + </configuration> |
| 290 | + </plugin> |
| 291 | + </plugins> |
| 292 | + </pluginManagement> |
| 293 | + <plugins> |
| 294 | + <plugin> |
| 295 | + <groupId>org.sonatype.plugins</groupId> |
| 296 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 297 | + </plugin> |
| 298 | + </plugins> |
| 299 | + </build> |
| 300 | + </profile> |
| 301 | + </profiles> |
216 | 302 | </project> |
0 commit comments