|
64 | 64 | </modules>
|
65 | 65 |
|
66 | 66 | <properties>
|
67 |
| - <maven.compiler.source>1.8</maven.compiler.source> |
68 |
| - <maven.compiler.target>1.8</maven.compiler.target> |
| 67 | + <maven.compiler.source>11</maven.compiler.source> |
| 68 | + <maven.compiler.target>11</maven.compiler.target> |
69 | 69 | <maven.deploy.plugin.version>3.1.1</maven.deploy.plugin.version>
|
70 | 70 | <log4j.version>2.20.0</log4j.version>
|
71 | 71 | <log4j.version>2.22.0</log4j.version>
|
|
91 | 91 | <aws-embedded-metrics.version>1.0.6</aws-embedded-metrics.version>
|
92 | 92 | <jmespath.version>0.6.0</jmespath.version>
|
93 | 93 | <elastic.version>1.6.0</elastic.version>
|
| 94 | + <mockito.version>5.6.0</mockito.version> |
94 | 95 |
|
95 | 96 | <!-- As we have a .mvn directory at the root of the project, this will evaluate to the root directory
|
96 | 97 | regardless of where maven is run - sub-module, or root. -->
|
|
300 | 301 | </exclusion>
|
301 | 302 | </exclusions>
|
302 | 303 | </dependency>
|
| 304 | + <dependency> |
| 305 | + <groupId>org.slf4j</groupId> |
| 306 | + <artifactId>slf4j-simple</artifactId> |
| 307 | + <version>${slf4j.version}</version> |
| 308 | + <scope>test</scope> |
| 309 | + </dependency> |
303 | 310 | <dependency>
|
304 | 311 | <groupId>org.skyscreamer</groupId>
|
305 | 312 | <artifactId>jsonassert</artifactId>
|
|
311 | 318 | <artifactId>aspectjtools</artifactId>
|
312 | 319 | <version>${aspectj.version}</version>
|
313 | 320 | </dependency>
|
| 321 | + <dependency> |
| 322 | + <groupId>org.mockito</groupId> |
| 323 | + <artifactId>mockito-core</artifactId> |
| 324 | + <version>${mockito.version}</version> |
| 325 | + <scope>test</scope> |
| 326 | + </dependency> |
314 | 327 | <dependency>
|
315 | 328 | <groupId>com.amazonaws</groupId>
|
316 | 329 | <artifactId>aws-lambda-java-tests</artifactId>
|
|
449 | 462 | <autoReleaseAfterClose>true</autoReleaseAfterClose>
|
450 | 463 | </configuration>
|
451 | 464 | </plugin>
|
| 465 | + <plugin> |
| 466 | + <groupId>org.apache.maven.plugins</groupId> |
| 467 | + <artifactId>maven-surefire-plugin</artifactId> |
| 468 | + <configuration> |
| 469 | + <systemPropertyVariables> |
| 470 | + <!-- TODO: remove when updating mockito / bytebuddy with Java21 compat --> |
| 471 | + <net.bytebuddy.experimental>true</net.bytebuddy.experimental> |
| 472 | + </systemPropertyVariables> |
| 473 | + </configuration> |
| 474 | + </plugin> |
| 475 | + <plugin> |
| 476 | + <groupId>org.apache.maven.plugins</groupId> |
| 477 | + <artifactId>maven-checkstyle-plugin</artifactId> |
| 478 | + <version>3.3.0</version> |
| 479 | + <configuration> |
| 480 | + <propertyExpansion>basedir=${project.rootdir}</propertyExpansion> |
| 481 | + <configLocation>checkstyle.xml</configLocation> |
| 482 | + <consoleOutput>true</consoleOutput> |
| 483 | + <failsOnError>true</failsOnError> |
| 484 | + <linkXRef>false</linkXRef> |
| 485 | + </configuration> |
| 486 | + <!-- does not work without this dependency --> |
| 487 | + <dependencies> |
| 488 | + <dependency> |
| 489 | + <groupId>com.puppycrawl.tools</groupId> |
| 490 | + <artifactId>checkstyle</artifactId> |
| 491 | + <version>10.12.3</version> |
| 492 | + </dependency> |
| 493 | + </dependencies> |
| 494 | + <executions> |
| 495 | + <execution> |
| 496 | + <goals> |
| 497 | + <goal>check</goal> |
| 498 | + </goals> |
| 499 | + </execution> |
| 500 | + </executions> |
| 501 | + </plugin> |
452 | 502 | </plugins>
|
453 | 503 | </build>
|
454 | 504 |
|
|
556 | 606 | </plugins>
|
557 | 607 | </build>
|
558 | 608 | </profile>
|
559 |
| - <profile> |
560 |
| - <id>olderThanJdk11</id> |
561 |
| - <activation> |
562 |
| - <jdk>(,11)</jdk> |
563 |
| - </activation> |
564 |
| - <properties> |
565 |
| - <!-- mockito 5+ is not compatible anymore with java < 11 --> |
566 |
| - <mockito.version>4.11.0</mockito.version> |
567 |
| - </properties> |
568 |
| - <dependencies> |
569 |
| - <dependency> |
570 |
| - <groupId>org.mockito</groupId> |
571 |
| - <artifactId>mockito-core</artifactId> |
572 |
| - <version>${mockito.version}</version> |
573 |
| - <scope>test</scope> |
574 |
| - </dependency> |
575 |
| - <dependency> |
576 |
| - <groupId>org.mockito</groupId> |
577 |
| - <artifactId>mockito-inline</artifactId> |
578 |
| - <version>${mockito.version}</version> |
579 |
| - <scope>test</scope> |
580 |
| - </dependency> |
581 |
| - </dependencies> |
582 |
| - </profile> |
583 |
| - <profile> |
584 |
| - <id>newerThanJdk11</id> |
585 |
| - <activation> |
586 |
| - <jdk>[11,)</jdk> |
587 |
| - </activation> |
588 |
| - <properties> |
589 |
| - <mockito.version>5.6.0</mockito.version> |
590 |
| - </properties> |
591 |
| - <dependencies> |
592 |
| - <!-- since mockito 5.3, no need to have mockito-inline --> |
593 |
| - <dependency> |
594 |
| - <groupId>org.mockito</groupId> |
595 |
| - <artifactId>mockito-core</artifactId> |
596 |
| - <version>${mockito.version}</version> |
597 |
| - <scope>test</scope> |
598 |
| - </dependency> |
599 |
| - </dependencies> |
600 |
| - <build> |
601 |
| - <plugins> |
602 |
| - <plugin> |
603 |
| - <groupId>org.apache.maven.plugins</groupId> |
604 |
| - <artifactId>maven-surefire-plugin</artifactId> |
605 |
| - <configuration> |
606 |
| - <systemPropertyVariables> |
607 |
| - <!-- TODO: remove when updating mockito / bytebuddy with Java21 compat --> |
608 |
| - <net.bytebuddy.experimental>true</net.bytebuddy.experimental> |
609 |
| - </systemPropertyVariables> |
610 |
| - </configuration> |
611 |
| - </plugin> |
612 |
| - </plugins> |
613 |
| - </build> |
614 |
| - </profile> |
615 |
| - <profile> |
616 |
| - <id>newerThanJdk8</id> |
617 |
| - <activation> |
618 |
| - <jdk>[9,)</jdk> |
619 |
| - </activation> |
620 |
| - <build> |
621 |
| - <plugins> |
622 |
| - <plugin> |
623 |
| - <!-- we run checkstyle only on Java 11, no need to run it for all JDK, it's just code style --> |
624 |
| - <groupId>org.apache.maven.plugins</groupId> |
625 |
| - <artifactId>maven-checkstyle-plugin</artifactId> |
626 |
| - <version>3.3.0</version> |
627 |
| - <configuration> |
628 |
| - <propertyExpansion>basedir=${project.rootdir}</propertyExpansion> |
629 |
| - <configLocation>checkstyle.xml</configLocation> |
630 |
| - <consoleOutput>true</consoleOutput> |
631 |
| - <failsOnError>true</failsOnError> |
632 |
| - <linkXRef>false</linkXRef> |
633 |
| - </configuration> |
634 |
| - <!-- does not work without this dependency --> |
635 |
| - <!-- does not work with this dependency on Java 8 --> |
636 |
| - <dependencies> |
637 |
| - <dependency> |
638 |
| - <groupId>com.puppycrawl.tools</groupId> |
639 |
| - <artifactId>checkstyle</artifactId> |
640 |
| - <version>10.12.3</version> |
641 |
| - </dependency> |
642 |
| - </dependencies> |
643 |
| - <executions> |
644 |
| - <execution> |
645 |
| - <goals> |
646 |
| - <goal>check</goal> |
647 |
| - </goals> |
648 |
| - </execution> |
649 |
| - </executions> |
650 |
| - </plugin> |
651 |
| - </plugins> |
652 |
| - </build> |
653 |
| - </profile> |
654 | 609 | </profiles>
|
655 | 610 |
|
656 | 611 | </project>
|
0 commit comments