|
27 | 27 | <parent> |
28 | 28 | <groupId>org.apache.httpcomponents</groupId> |
29 | 29 | <artifactId>httpcomponents-parent</artifactId> |
30 | | - <version>14</version> |
| 30 | + <version>15</version> |
31 | 31 | </parent> |
32 | 32 | <modelVersion>4.0.0</modelVersion> |
33 | 33 | <groupId>org.apache.httpcomponents.client5</groupId> |
|
60 | 60 | </distributionManagement> |
61 | 61 |
|
62 | 62 | <properties> |
63 | | - <maven.compiler.source>1.8</maven.compiler.source> |
64 | | - <maven.compiler.target>1.8</maven.compiler.target> |
65 | | - <!-- Maven itself runs on Java 17+, but compilation and tests can still use an older toolchain JDK. --> |
66 | | - <hc.build.toolchain.version>${maven.compiler.source}</hc.build.toolchain.version> |
| 63 | + <javaVersion>8</javaVersion> |
| 64 | + <minimalJavaBuildVersion>17</minimalJavaBuildVersion> |
| 65 | + <maven.compiler.source>${javaVersion}</maven.compiler.source> |
| 66 | + <maven.compiler.target>${javaVersion}</maven.compiler.target> |
| 67 | + <maven.compiler.showDeprecation>true</maven.compiler.showDeprecation> |
| 68 | + <api.comparison.version>5.6</api.comparison.version> |
| 69 | + |
| 70 | + <!-- Disable animal sniffer. It has been superseded by compiler release version |
| 71 | + To be completely removed --> |
| 72 | + <animal.sniffer.skip>true</animal.sniffer.skip> |
| 73 | + |
67 | 74 | <httpcore.version>5.5-beta3</httpcore.version> |
68 | 75 | <log4j.version>2.26.1</log4j.version> |
69 | 76 | <brotli4j.version>1.23.0</brotli4j.version> |
|
77 | 84 | <rxjava3.version>3.1.12</rxjava3.version> |
78 | 85 | <testcontainers.version>1.21.4</testcontainers.version> |
79 | 86 | <junixsocket.version>2.10.1</junixsocket.version> |
80 | | - <api.comparison.version>5.6</api.comparison.version> |
81 | | - <hc.animal-sniffer.signature.ignores>javax.net.ssl.SSLEngine,javax.net.ssl.SSLParameters,java.nio.ByteBuffer,java.nio.CharBuffer,jdk.net.ExtendedSocketOptions,jdk.net.Sockets</hc.animal-sniffer.signature.ignores> |
82 | 87 | <commons.compress.version>1.28.0</commons.compress.version> |
83 | 88 | <zstd.jni.version>1.5.7-11</zstd.jni.version> |
84 | 89 | <micrometer.version>1.17.0</micrometer.version> |
|
304 | 309 | <build> |
305 | 310 | <defaultGoal>clean verify</defaultGoal> |
306 | 311 | <plugins> |
| 312 | + <plugin> |
| 313 | + <groupId>org.apache.maven.plugins</groupId> |
| 314 | + <artifactId>maven-compiler-plugin</artifactId> |
| 315 | + <configuration> |
| 316 | + <source>${maven.compiler.source}</source> |
| 317 | + <target>${maven.compiler.target}</target> |
| 318 | + <!-- unset compiler release version set by the apache parent |
| 319 | + Presently core and client fail compile with java 8 release target |
| 320 | + due to the use of jdk.net classes |
| 321 | + --> |
| 322 | + <release combine.self="override"/> |
| 323 | + </configuration> |
| 324 | + </plugin> |
307 | 325 | <plugin> |
308 | 326 | <artifactId>maven-jar-plugin</artifactId> |
309 | 327 | <configuration> |
|
366 | 384 | </execution> |
367 | 385 | </executions> |
368 | 386 | </plugin> |
369 | | - <plugin> |
370 | | - <groupId>org.apache.maven.plugins</groupId> |
371 | | - <artifactId>maven-enforcer-plugin</artifactId> |
372 | | - <version>3.6.3</version> |
373 | | - <executions> |
374 | | - <execution> |
375 | | - <id>enforce-java-runtime</id> |
376 | | - <goals> |
377 | | - <goal>enforce</goal> |
378 | | - </goals> |
379 | | - <configuration> |
380 | | - <rules> |
381 | | - <requireJavaVersion> |
382 | | - <version>[17,)</version> |
383 | | - <message>Apache HttpComponents Client requires Java 17 or newer to run Maven. Use toolchains to compile and test with older JDKs.</message> |
384 | | - </requireJavaVersion> |
385 | | - </rules> |
386 | | - </configuration> |
387 | | - </execution> |
388 | | - </executions> |
389 | | - </plugin> |
390 | 387 | <plugin> |
391 | 388 | <groupId>com.github.siom79.japicmp</groupId> |
392 | 389 | <artifactId>japicmp-maven-plugin</artifactId> |
393 | | - <version>0.26.1</version> |
394 | 390 | <configuration> |
395 | 391 | <oldVersion> |
396 | 392 | <dependency> |
|
430 | 426 | <plugin> |
431 | 427 | <groupId>org.apache.rat</groupId> |
432 | 428 | <artifactId>apache-rat-plugin</artifactId> |
433 | | - <version>0.18</version> |
434 | 429 | <executions> |
435 | 430 | <execution> |
436 | 431 | <phase>verify</phase> |
|
453 | 448 | <plugin> |
454 | 449 | <groupId>org.apache.maven.plugins</groupId> |
455 | 450 | <artifactId>maven-surefire-plugin</artifactId> |
456 | | - <version>${hc.surefire.version}</version> |
| 451 | + <!-- Several features such as group exclusion and parallel test execution |
| 452 | + in the integration test suite do not appear to work reliably with |
| 453 | + versions of maven-surefire-plugin higher than 3.5.0 |
| 454 | + --> |
| 455 | + <version>3.5.0</version> |
457 | 456 | <configuration> |
458 | 457 | <excludedGroups>slow,time-out,stale-conn</excludedGroups> |
459 | 458 | </configuration> |
|
486 | 485 | <plugin> |
487 | 486 | <groupId>org.apache.maven.plugins</groupId> |
488 | 487 | <artifactId>maven-surefire-plugin</artifactId> |
489 | | - <version>${hc.surefire.version}</version> |
490 | 488 | <configuration combine.self="override"> |
491 | 489 | <groups>slow</groups> |
492 | 490 | </configuration> |
|
503 | 501 | <plugin> |
504 | 502 | <groupId>org.apache.maven.plugins</groupId> |
505 | 503 | <artifactId>maven-surefire-plugin</artifactId> |
506 | | - <version>${hc.surefire.version}</version> |
507 | 504 | <configuration combine.self="override"> |
508 | 505 | <excludedGroups>slow</excludedGroups> |
509 | 506 | </configuration> |
|
512 | 509 | </plugins> |
513 | 510 | </build> |
514 | 511 | </profile> |
515 | | - <profile> |
516 | | - <id>use-toolchains</id> |
517 | | - <activation> |
518 | | - <file> |
519 | | - <exists>${user.home}/.m2/toolchains.xml</exists> |
520 | | - </file> |
521 | | - </activation> |
522 | | - <build> |
523 | | - <plugins> |
524 | | - <plugin> |
525 | | - <groupId>org.apache.maven.plugins</groupId> |
526 | | - <artifactId>maven-toolchains-plugin</artifactId> |
527 | | - <version>3.2.0</version> |
528 | | - <configuration combine.self="override"> |
529 | | - <toolchains> |
530 | | - <jdk> |
531 | | - <version>${hc.build.toolchain.version}</version> |
532 | | - </jdk> |
533 | | - </toolchains> |
534 | | - </configuration> |
535 | | - <executions combine.self="override"> |
536 | | - <execution> |
537 | | - <goals> |
538 | | - <goal>toolchain</goal> |
539 | | - </goals> |
540 | | - </execution> |
541 | | - </executions> |
542 | | - </plugin> |
543 | | - </plugins> |
544 | | - </build> |
545 | | - </profile> |
546 | 512 | </profiles> |
547 | 513 |
|
548 | 514 |
|
|
0 commit comments