|
1 | | -<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
| 1 | +<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" |
| 2 | + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd"> |
2 | 3 |
|
3 | 4 | <parent> |
4 | 5 | <groupId>org.sonatype.oss</groupId> |
|
24 | 25 |
|
25 | 26 | <properties> |
26 | 27 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
27 | | - |
| 28 | + |
28 | 29 | <!-- Dependency version properties below here. --> |
29 | | - <maven.plugin.testing.annotation.version>3.10.2</maven.plugin.testing.annotation.version> |
| 30 | + <maven.plugin.testing.annotation.version>3.15.1</maven.plugin.testing.annotation.version> |
30 | 31 | <maven.plugin.testing.harness.version>3.3.0</maven.plugin.testing.harness.version> |
31 | | - <maven.enforcer.plugin.version>3.4.1</maven.enforcer.plugin.version> |
32 | | - <maven.compiler.plugin.version>3.11.0</maven.compiler.plugin.version> |
33 | | - <maven.gpg.plugin.version>3.1.0</maven.gpg.plugin.version> |
34 | | - <maven.cyclonedx.plugin.version>2.7.10</maven.cyclonedx.plugin.version> |
35 | | - <license.maven.plugin.version>2.3.0</license.maven.plugin.version> |
36 | | - <versions.maven.plugin.version>2.16.2</versions.maven.plugin.version> |
37 | | - <jira.rest.java.client.version>5.2.7</jira.rest.java.client.version> |
38 | | - <fugue.version>5.0.0</fugue.version> |
39 | | - <maven.version>3.9.5</maven.version> |
40 | | - <gitflow.maven.plugin.version>1.20.0</gitflow.maven.plugin.version> |
41 | | - <nexus.staging.maven.plugin.version>1.6.13</nexus.staging.maven.plugin.version> |
42 | | - <maven.clean.plugin.version>3.3.2</maven.clean.plugin.version> |
43 | | - <maven.deploy.plugin.version>3.1.1</maven.deploy.plugin.version> |
44 | | - <maven.install.plugin.version>3.1.1</maven.install.plugin.version> |
45 | | - <maven.jar.plugin.version>3.3.0</maven.jar.plugin.version> |
46 | | - <maven.plugin.plugin.version>3.10.2</maven.plugin.plugin.version> |
| 32 | + <maven.enforcer.plugin.version>3.6.2</maven.enforcer.plugin.version> |
| 33 | + <maven.compiler.plugin.version>3.14.1</maven.compiler.plugin.version> |
| 34 | + <maven.gpg.plugin.version>3.2.8</maven.gpg.plugin.version> |
| 35 | + <maven.cyclonedx.plugin.version>2.9.1</maven.cyclonedx.plugin.version> |
| 36 | + <license.maven.plugin.version>2.7.0</license.maven.plugin.version> |
| 37 | + <versions.maven.plugin.version>2.19.1</versions.maven.plugin.version> |
| 38 | + <jira.rest.java.client.version>${jira-rest-java-client-core.version}</jira.rest.java.client.version> |
| 39 | + <fugue.version>6.1.2</fugue.version> |
| 40 | + <maven.version>3.9.11</maven.version> |
| 41 | + <gitflow.maven.plugin.version>1.21.0</gitflow.maven.plugin.version> |
| 42 | + <nexus.staging.maven.plugin.version>1.7.0</nexus.staging.maven.plugin.version> |
| 43 | + <maven.clean.plugin.version>3.5.0</maven.clean.plugin.version> |
| 44 | + <maven.deploy.plugin.version>3.1.4</maven.deploy.plugin.version> |
| 45 | + <maven.install.plugin.version>3.1.4</maven.install.plugin.version> |
| 46 | + <maven.jar.plugin.version>3.4.2</maven.jar.plugin.version> |
| 47 | + <maven.plugin.plugin.version>3.15.1</maven.plugin.plugin.version> |
47 | 48 | <maven.resources.plugin.version>3.3.1</maven.resources.plugin.version> |
48 | | - <maven.site.plugin.version>4.0.0-M12</maven.site.plugin.version> |
49 | | - <maven.surefire.plugin.version>3.2.2</maven.surefire.plugin.version> |
50 | | - <maven.javadoc.plugin.version>3.6.2</maven.javadoc.plugin.version> |
51 | | - <maven-source-plugin.version>3.3.0</maven-source-plugin.version> |
| 49 | + <maven.site.plugin.version>4.0.0-M16</maven.site.plugin.version> |
| 50 | + <maven.surefire.plugin.version>3.5.4</maven.surefire.plugin.version> |
| 51 | + <maven.javadoc.plugin.version>3.12.0</maven.javadoc.plugin.version> |
| 52 | + <maven-source-plugin.version>3.3.1</maven-source-plugin.version> |
52 | 53 | <!-- don't bump mockito to 5 as it requires java 11 --> |
53 | 54 | <mockito.version>4.11.0</mockito.version> |
54 | 55 | <junit.version>4.13.2</junit.version> |
55 | | - <plexus-sec-dispatcher.version>2.0</plexus-sec-dispatcher.version> |
| 56 | + <plexus-sec-dispatcher.version>4.1.0</plexus-sec-dispatcher.version> |
| 57 | + <maven-shade-plugin.version>3.5.2</maven-shade-plugin.version> |
| 58 | + <maven-dependency-plugin.version>3.6.1</maven-dependency-plugin.version> |
| 59 | + <maven-assembly-plugin.version>3.7.1</maven-assembly-plugin.version> |
| 60 | + <maven-install-plugin.version>3.1.1</maven-install-plugin.version> |
| 61 | + <jira-rest-java-client-core.version>7.0.1</jira-rest-java-client-core.version> |
| 62 | + <maven.failsafe.plugin.version>3.5.4</maven.failsafe.plugin.version> |
56 | 63 | </properties> |
57 | 64 |
|
58 | 65 | <repositories> |
| 66 | + |
| 67 | + <!-- this library and fugue will be provided as jars exclusively as it is not available in maven central and |
| 68 | + I want this plugin to be independent on Atlassian's maven repositories. Leaving this comment to preserve this decision |
| 69 | + and for people to know where they can download and validate fugue --> |
59 | 70 | <repository> |
60 | 71 | <id>atlassian-public</id> |
61 | 72 | <url>https://packages.atlassian.com/maven/repository/public</url> |
|
139 | 150 |
|
140 | 151 | <dependencies> |
141 | 152 |
|
| 153 | + <!-- https://mvnrepository.com/artifact/com.atlassian.jira/jira-rest-java-client-core --> |
142 | 154 | <dependency> |
143 | 155 | <groupId>com.atlassian.jira</groupId> |
144 | 156 | <artifactId>jira-rest-java-client-core</artifactId> |
145 | | - <version>${jira.rest.java.client.version}</version> |
| 157 | + <version>${jira-rest-java-client-core.version}</version> |
146 | 158 | </dependency> |
147 | 159 |
|
148 | 160 | <!-- required https://github.com/schrepfler/jira-maven-plugin/issues/59 --> |
149 | 161 | <dependency> |
150 | 162 | <groupId>io.atlassian.fugue</groupId> |
151 | 163 | <artifactId>fugue</artifactId> |
152 | 164 | <version>${fugue.version}</version> |
153 | | - <scope>runtime</scope> |
154 | 165 | </dependency> |
155 | | - |
| 166 | + |
156 | 167 | <dependency> |
157 | 168 | <groupId>org.apache.maven</groupId> |
158 | 169 | <artifactId>maven-plugin-api</artifactId> |
|
222 | 233 | <version>${maven.plugin.testing.harness.version}</version> |
223 | 234 | <scope>test</scope> |
224 | 235 | </dependency> |
| 236 | + |
| 237 | + <!-- Required for plexus-sec-dispatcher 4.x in tests --> |
| 238 | + <dependency> |
| 239 | + <groupId>org.apache.maven</groupId> |
| 240 | + <artifactId>maven-settings-builder</artifactId> |
| 241 | + <version>${maven.version}</version> |
| 242 | + <scope>test</scope> |
| 243 | + </dependency> |
225 | 244 | </dependencies> |
226 | 245 |
|
227 | 246 | <scm> |
|
235 | 254 | See: https://blog.sonatype.com/2010/01/how-to-generate-pgp-signatures-with-maven/ |
236 | 255 | --> |
237 | 256 | <profiles> |
238 | | - <profile> |
239 | | - <id>release-sign-artifacts</id> |
240 | | - <activation> |
241 | | - <property> |
242 | | - <name>performRelease</name> |
243 | | - <value>true</value> |
244 | | - </property> |
245 | | - </activation> |
246 | | - |
247 | | - <build> |
248 | | - <plugins> |
249 | | - <plugin> |
250 | | - <groupId>org.apache.maven.plugins</groupId> |
251 | | - <artifactId>maven-gpg-plugin</artifactId> |
252 | | - <version>${maven.gpg.plugin.version}</version> |
253 | | - <executions> |
254 | | - <execution> |
255 | | - <id>sign-artifacts</id> |
256 | | - <phase>verify</phase> |
257 | | - <goals> |
258 | | - <goal>sign</goal> |
259 | | - </goals> |
260 | | - <configuration> |
261 | | - <!-- Prevent gpg from using pinentry programs, needed for GitHub Actions --> |
262 | | - <gpgArguments> |
263 | | - <arg>--pinentry-mode</arg> |
264 | | - <arg>loopback</arg> |
265 | | - </gpgArguments> |
266 | | - </configuration> |
267 | | - </execution> |
268 | | - </executions> |
269 | | - </plugin> |
270 | | - </plugins> |
271 | | - </build> |
272 | | - </profile> |
| 257 | + <profile> |
| 258 | + <id>release-sign-artifacts</id> |
| 259 | + <activation> |
| 260 | + <property> |
| 261 | + <name>performRelease</name> |
| 262 | + <value>true</value> |
| 263 | + </property> |
| 264 | + </activation> |
| 265 | + |
| 266 | + <build> |
| 267 | + <plugins> |
| 268 | + <plugin> |
| 269 | + <groupId>org.apache.maven.plugins</groupId> |
| 270 | + <artifactId>maven-gpg-plugin</artifactId> |
| 271 | + <version>${maven.gpg.plugin.version}</version> |
| 272 | + <executions> |
| 273 | + <execution> |
| 274 | + <id>sign-artifacts</id> |
| 275 | + <phase>verify</phase> |
| 276 | + <goals> |
| 277 | + <goal>sign</goal> |
| 278 | + </goals> |
| 279 | + <configuration> |
| 280 | + <!-- Prevent gpg from using pinentry programs, needed for GitHub Actions --> |
| 281 | + <gpgArguments> |
| 282 | + <arg>--pinentry-mode</arg> |
| 283 | + <arg>loopback</arg> |
| 284 | + </gpgArguments> |
| 285 | + </configuration> |
| 286 | + </execution> |
| 287 | + </executions> |
| 288 | + </plugin> |
| 289 | + </plugins> |
| 290 | + </build> |
| 291 | + </profile> |
273 | 292 |
|
274 | 293 | <profile> |
275 | 294 | <id>java8</id> |
|
290 | 309 | </build> |
291 | 310 | </profile> |
292 | 311 |
|
| 312 | + <profile> |
| 313 | + <id>integration-tests</id> |
| 314 | + <build> |
| 315 | + <plugins> |
| 316 | + <plugin> |
| 317 | + <groupId>org.apache.maven.plugins</groupId> |
| 318 | + <artifactId>maven-failsafe-plugin</artifactId> |
| 319 | + <version>${maven.failsafe.plugin.version}</version> |
| 320 | + <executions> |
| 321 | + <execution> |
| 322 | + <goals> |
| 323 | + <goal>integration-test</goal> |
| 324 | + <goal>verify</goal> |
| 325 | + </goals> |
| 326 | + </execution> |
| 327 | + </executions> |
| 328 | + <configuration> |
| 329 | + <includes> |
| 330 | + <include>**/*IntegrationTest.java</include> |
| 331 | + </includes> |
| 332 | + <systemPropertyVariables> |
| 333 | + <jira.url>${jira.url}</jira.url> |
| 334 | + <jira.username>${jira.username}</jira.username> |
| 335 | + <jira.password>${jira.password}</jira.password> |
| 336 | + <jira.pat>${jira.pat}</jira.pat> |
| 337 | + <jira.projectKey>${jira.projectKey}</jira.projectKey> |
| 338 | + </systemPropertyVariables> |
| 339 | + </configuration> |
| 340 | + </plugin> |
| 341 | + </plugins> |
| 342 | + </build> |
| 343 | + </profile> |
| 344 | + |
293 | 345 | </profiles> |
294 | 346 |
|
295 | 347 | <build> |
|
324 | 376 | </configuration> |
325 | 377 | </plugin> |
326 | 378 |
|
327 | | - <plugin> |
328 | | - <groupId>org.sonatype.plugins</groupId> |
329 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
330 | | - <version>${nexus.staging.maven.plugin.version}</version> |
331 | | - </plugin> |
| 379 | + <plugin> |
| 380 | + <groupId>org.sonatype.plugins</groupId> |
| 381 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 382 | + <version>${nexus.staging.maven.plugin.version}</version> |
| 383 | + </plugin> |
332 | 384 |
|
333 | 385 | <plugin> |
334 | 386 | <groupId>org.apache.maven.plugins</groupId> |
|
407 | 459 | <groupId>org.apache.maven.plugins</groupId> |
408 | 460 | <artifactId>maven-compiler-plugin</artifactId> |
409 | 461 | <configuration> |
410 | | - <source>1.8</source> |
411 | | - <target>1.8</target> |
| 462 | + <source>21</source> |
| 463 | + <target>21</target> |
412 | 464 | </configuration> |
413 | 465 | </plugin> |
414 | 466 |
|
|
427 | 479 | <artifactId>gitflow-maven-plugin</artifactId> |
428 | 480 | </plugin> |
429 | 481 |
|
430 | | - <plugin> |
431 | | - <groupId>org.sonatype.plugins</groupId> |
432 | | - <artifactId>nexus-staging-maven-plugin</artifactId> |
433 | | - <extensions>true</extensions> |
434 | | - <configuration> |
435 | | - <serverId>ossrh</serverId> |
436 | | - <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
437 | | - <autoReleaseAfterClose>true</autoReleaseAfterClose> |
438 | | - </configuration> |
439 | | - </plugin> |
| 482 | + <plugin> |
| 483 | + <groupId>org.sonatype.plugins</groupId> |
| 484 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 485 | + <extensions>true</extensions> |
| 486 | + <configuration> |
| 487 | + <serverId>ossrh</serverId> |
| 488 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 489 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 490 | + </configuration> |
| 491 | + </plugin> |
440 | 492 |
|
441 | 493 | <plugin> |
442 | 494 | <groupId>org.apache.maven.plugins</groupId> |
|
457 | 509 | </executions> |
458 | 510 | </plugin> |
459 | 511 |
|
| 512 | + <plugin> |
| 513 | + <groupId>org.apache.maven.plugins</groupId> |
| 514 | + <artifactId>maven-surefire-plugin</artifactId> |
| 515 | + <configuration> |
| 516 | + <!-- Exclude integration tests from regular test phase --> |
| 517 | + <excludes> |
| 518 | + <exclude>**/*IntegrationTest.java</exclude> |
| 519 | + <exclude>**/integration/**/*.java</exclude> |
| 520 | + </excludes> |
| 521 | + </configuration> |
| 522 | + </plugin> |
| 523 | + |
460 | 524 | <plugin> |
461 | 525 | <groupId>org.cyclonedx</groupId> |
462 | 526 | <artifactId>cyclonedx-maven-plugin</artifactId> |
|
470 | 534 | </execution> |
471 | 535 | </executions> |
472 | 536 | </plugin> |
473 | | - |
474 | 537 | </plugins> |
475 | 538 | </build> |
476 | 539 |
|
|
0 commit comments