|
371 | 371 | <sourceCompatible>true</sourceCompatible> |
372 | 372 | <semanticVersionLevel>PATCH</semanticVersionLevel> |
373 | 373 | </overrideCompatibilityChangeParameter> |
| 374 | + <overrideCompatibilityChangeParameter> |
| 375 | + <compatibilityChange>SUPERCLASS_ADDED</compatibilityChange> |
| 376 | + <binaryCompatible>true</binaryCompatible> |
| 377 | + <sourceCompatible>true</sourceCompatible> |
| 378 | + <semanticVersionLevel>PATCH</semanticVersionLevel> |
| 379 | + </overrideCompatibilityChangeParameter> |
374 | 380 | <overrideCompatibilityChangeParameter> |
375 | 381 | <compatibilityChange>ANNOTATION_DEPRECATED_ADDED</compatibilityChange> |
376 | 382 | <semanticVersionLevel>PATCH</semanticVersionLevel> |
|
497 | 503 | </configuration> |
498 | 504 | </plugin> |
499 | 505 |
|
500 | | - <plugin> |
501 | | - <groupId>org.codehaus.mojo</groupId> |
502 | | - <artifactId>animal-sniffer-maven-plugin</artifactId> |
503 | | - <version>1.24</version> |
504 | | - <configuration> |
505 | | - <signature> |
506 | | - <groupId>net.sf.androidscents.signature</groupId> |
507 | | - <artifactId>android-api-level-26</artifactId> |
508 | | - <version>8.0.0_r2</version> |
509 | | - </signature> |
510 | | - <ignores> |
511 | | - <ignore>javax.naming.NamingException</ignore> |
512 | | - <ignore>javax.naming.directory.*</ignore> |
513 | | - <ignore>sun.net.spi.nameservice.*</ignore> |
514 | | - <ignore>java.net.spi.*</ignore> |
515 | | - </ignores> |
516 | | - </configuration> |
517 | | - <dependencies> |
518 | | - <dependency> |
519 | | - <groupId>org.ow2.asm</groupId> |
520 | | - <artifactId>asm</artifactId> |
521 | | - <version>9.7.1</version> |
522 | | - </dependency> |
523 | | - </dependencies> |
524 | | - <executions> |
525 | | - <execution> |
526 | | - <id>animal-sniffer</id> |
527 | | - <phase>test</phase> |
528 | | - <goals> |
529 | | - <goal>check</goal> |
530 | | - </goals> |
531 | | - </execution> |
532 | | - </executions> |
533 | | - </plugin> |
534 | | - |
535 | 506 | <plugin> |
536 | 507 | <groupId>org.apache.maven.plugins</groupId> |
537 | 508 | <artifactId>maven-enforcer-plugin</artifactId> |
|
719 | 690 | <target>${target.jdk}</target> |
720 | 691 | </configuration> |
721 | 692 | </plugin> |
| 693 | + |
| 694 | + <plugin> |
| 695 | + <groupId>org.codehaus.mojo</groupId> |
| 696 | + <artifactId>animal-sniffer-maven-plugin</artifactId> |
| 697 | + <version>1.24</version> |
| 698 | + <configuration> |
| 699 | + <signature> |
| 700 | + <groupId>com.toasttab.android</groupId> |
| 701 | + <artifactId>gummy-bears-api-26</artifactId> |
| 702 | + <version>0.12.0</version> |
| 703 | + </signature> |
| 704 | + <ignores> |
| 705 | + <ignore>javax.naming.NamingException</ignore> |
| 706 | + <ignore>javax.naming.directory.*</ignore> |
| 707 | + <ignore>sun.net.spi.nameservice.*</ignore> |
| 708 | + <ignore>java.net.spi.*</ignore> |
| 709 | + </ignores> |
| 710 | + </configuration> |
| 711 | + <dependencies> |
| 712 | + <dependency> |
| 713 | + <groupId>org.ow2.asm</groupId> |
| 714 | + <artifactId>asm</artifactId> |
| 715 | + <version>9.8</version> |
| 716 | + </dependency> |
| 717 | + </dependencies> |
| 718 | + <executions> |
| 719 | + <execution> |
| 720 | + <id>animal-sniffer</id> |
| 721 | + <phase>test</phase> |
| 722 | + <goals> |
| 723 | + <goal>check</goal> |
| 724 | + </goals> |
| 725 | + </execution> |
| 726 | + </executions> |
| 727 | + </plugin> |
| 728 | + |
| 729 | + <plugin> |
| 730 | + <groupId>org.jacoco</groupId> |
| 731 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 732 | + <executions> |
| 733 | + <execution> |
| 734 | + <id>report</id> |
| 735 | + <phase>verify</phase> |
| 736 | + <goals> |
| 737 | + <goal>report</goal> |
| 738 | + </goals> |
| 739 | + <configuration> |
| 740 | + <excludes> |
| 741 | + <exclude>META-INF/**</exclude> |
| 742 | + </excludes> |
| 743 | + </configuration> |
| 744 | + </execution> |
| 745 | + </executions> |
| 746 | + </plugin> |
722 | 747 | </plugins> |
723 | 748 | </build> |
724 | 749 | </profile> |
|
815 | 840 | @{argLine} |
816 | 841 | --add-opens java.base/sun.net.dns=ALL-UNNAMED |
817 | 842 | </argLine> |
| 843 | + |
| 844 | + <!-- |
| 845 | + Workaround to actually use / prefer the versioned classes |
| 846 | + https://issues.apache.org/jira/browse/SUREFIRE-1731 |
| 847 | + --> |
| 848 | + <useModulePath>false</useModulePath> |
| 849 | + <classesDirectory>${project.build.outputDirectory}/META-INF/versions/11</classesDirectory> |
818 | 850 | <additionalClasspathElements> |
819 | | - <additionalClasspathElement>${project.build.outputDirectory}/META-INF/versions/11</additionalClasspathElement> |
| 851 | + <additionalClasspathElement>${project.build.outputDirectory}</additionalClasspathElement> |
820 | 852 | </additionalClasspathElements> |
821 | 853 | </configuration> |
822 | 854 | </plugin> |
| 855 | + |
| 856 | + <plugin> |
| 857 | + <groupId>org.jacoco</groupId> |
| 858 | + <artifactId>jacoco-maven-plugin</artifactId> |
| 859 | + <configuration> |
| 860 | + <excludes> |
| 861 | + <exclude>org/xbill/DNS/AsyncSemaphore*</exclude> |
| 862 | + <exclude>org/xbill/DNS/DohResolver*</exclude> |
| 863 | + </excludes> |
| 864 | + </configuration> |
| 865 | + </plugin> |
823 | 866 | </plugins> |
824 | 867 | </build> |
825 | 868 | </profile> |
826 | 869 |
|
827 | 870 | <profile> |
828 | | - <!-- Required only for maven-source-plugin, but needs to be hidden from IntelliJ --> |
829 | | - <!-- https://github.com/apache/maven-source-plugin/issues/215 --> |
| 871 | + <!-- |
| 872 | + Required only for maven-source-plugin, but needs to be hidden from IntelliJ |
| 873 | + https://github.com/apache/maven-source-plugin/issues/215 |
| 874 | + --> |
830 | 875 | <id>java11-not-idea</id> |
831 | 876 | <activation> |
832 | 877 | <activeByDefault>false</activeByDefault> |
|
910 | 955 | @{argLine} |
911 | 956 | --add-opens java.base/sun.net.dns=ALL-UNNAMED |
912 | 957 | -javaagent:${net.bytebuddy:byte-buddy-agent:jar} |
| 958 | + -javaagent:${org.mockito:mockito-core:jar} |
913 | 959 | </argLine> |
| 960 | + |
| 961 | + <!-- |
| 962 | + Workaround to actually use / prefer the versioned classes |
| 963 | + https://issues.apache.org/jira/browse/SUREFIRE-1731 |
| 964 | + --> |
| 965 | + <useModulePath>false</useModulePath> |
| 966 | + <classesDirectory>${project.build.outputDirectory}/META-INF/versions/18</classesDirectory> |
914 | 967 | <additionalClasspathElements> |
915 | 968 | <additionalClasspathElement>${project.build.outputDirectory}/META-INF/versions/11</additionalClasspathElement> |
916 | | - <additionalClasspathElement>${project.build.outputDirectory}/META-INF/versions/18</additionalClasspathElement> |
| 969 | + <additionalClasspathElement>${project.build.outputDirectory}</additionalClasspathElement> |
917 | 970 | </additionalClasspathElements> |
918 | 971 | </configuration> |
919 | 972 | </plugin> |
|
922 | 975 | </profile> |
923 | 976 |
|
924 | 977 | <profile> |
925 | | - <!-- Required only for maven-source-plugin, but needs to be hidden from IntelliJ --> |
926 | | - <!-- https://github.com/apache/maven-source-plugin/issues/215 --> |
| 978 | + <!-- |
| 979 | + Required only for maven-source-plugin, but needs to be hidden from IntelliJ |
| 980 | + https://github.com/apache/maven-source-plugin/issues/215 |
| 981 | + --> |
927 | 982 | <id>java18-not-idea</id> |
928 | 983 | <activation> |
929 | 984 | <activeByDefault>false</activeByDefault> |
|
0 commit comments