|
241 | 241 | <artifactId>java18</artifactId> |
242 | 242 | <version>1.0</version> |
243 | 243 | </signature> |
| 244 | + <ignores> |
| 245 | + java.net.http.* |
| 246 | + </ignores> |
244 | 247 | </configuration> |
245 | 248 | <executions> |
246 | 249 | <execution> |
|
301 | 304 | </annotationProcessorPath> |
302 | 305 | </annotationProcessorPaths> |
303 | 306 | </configuration> |
| 307 | + <executions> |
| 308 | + <execution> |
| 309 | + <id>compile-java-11</id> |
| 310 | + <phase>compile</phase> |
| 311 | + <goals> |
| 312 | + <goal>compile</goal> |
| 313 | + </goals> |
| 314 | + <configuration> |
| 315 | + <release>11</release> |
| 316 | + <source>11</source> |
| 317 | + <target>11</target> |
| 318 | + <compileSourceRoots> |
| 319 | + <compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot> |
| 320 | + </compileSourceRoots> |
| 321 | + <multiReleaseOutput>true</multiReleaseOutput> |
| 322 | + </configuration> |
| 323 | + </execution> |
| 324 | + </executions> |
304 | 325 | </plugin> |
305 | 326 | <plugin> |
306 | 327 | <artifactId>maven-surefire-plugin</artifactId> |
| 328 | + <configuration> |
| 329 | + <argLine>@{jacoco.surefire.argLine} ${surefire.argLine}</argLine> |
| 330 | + </configuration> |
307 | 331 | <executions> |
308 | 332 | <execution> |
309 | 333 | <id>default-test</id> |
310 | 334 | <configuration> |
311 | 335 | <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
312 | | - <argLine>@{jacoco.surefire.argLine} ${surefire.argLine}</argLine> |
313 | 336 | </configuration> |
314 | 337 | </execution> |
315 | 338 | </executions> |
316 | 339 | </plugin> |
| 340 | + <plugin> |
| 341 | + <groupId>org.apache.maven.plugins</groupId> |
| 342 | + <artifactId>maven-jar-plugin</artifactId> |
| 343 | + <version>3.3.0</version> |
| 344 | + <configuration> |
| 345 | + <archive> |
| 346 | + <manifestEntries> |
| 347 | + <Automatic-Module-Name>org.kohsuke.github.api</Automatic-Module-Name> |
| 348 | + <Multi-Release>true</Multi-Release> |
| 349 | + </manifestEntries> |
| 350 | + </archive> |
| 351 | + </configuration> |
| 352 | + </plugin> |
317 | 353 | <plugin> |
318 | 354 | <groupId>org.codehaus.mojo</groupId> |
319 | 355 | <artifactId>animal-sniffer-maven-plugin</artifactId> |
|
616 | 652 | <profiles> |
617 | 653 | <!-- only enable slow-or-flaky-test if -Dtest= is not present --> |
618 | 654 | <profile> |
619 | | - <id>slow-or-flaky-test</id> |
| 655 | + <id>test-slow-multireleasejar-flaky</id> |
620 | 656 | <activation> |
621 | 657 | <property> |
622 | 658 | <name>!test</name> |
|
639 | 675 | <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=okhttp</argLine> |
640 | 676 | </configuration> |
641 | 677 | </execution> |
| 678 | + <execution> |
| 679 | + <id>java11-test</id> |
| 680 | + <phase>integration-test</phase> |
| 681 | + <goals> |
| 682 | + <goal>test</goal> |
| 683 | + </goals> |
| 684 | + <configuration> |
| 685 | + <classesDirectory>${project.basedir}/target/github-api-${project.version}.jar</classesDirectory> |
| 686 | + <useSystemClassLoader>false</useSystemClassLoader> |
| 687 | + <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
| 688 | + <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=httpclient</argLine> |
| 689 | + </configuration> |
| 690 | + </execution> |
| 691 | + <execution> |
| 692 | + <id>java11-urlconnection-test</id> |
| 693 | + <phase>integration-test</phase> |
| 694 | + <goals> |
| 695 | + <goal>test</goal> |
| 696 | + </goals> |
| 697 | + <configuration> |
| 698 | + <classesDirectory>${project.basedir}/target/github-api-${project.version}.jar</classesDirectory> |
| 699 | + <useSystemClassLoader>false</useSystemClassLoader> |
| 700 | + <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
| 701 | + <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=urlconnection</argLine> |
| 702 | + </configuration> |
| 703 | + </execution> |
642 | 704 | <execution> |
643 | 705 | <id>slow-or-flaky-test</id> |
644 | 706 | <phase>integration-test</phase> |
|
651 | 713 | <!-- There are some tests that take longer or are a little |
652 | 714 | flaky. Run them here. --> |
653 | 715 | <includesFile>src/test/resources/slow-or-flaky-tests.txt</includesFile> |
654 | | - <argLine>@{jacoco.surefire.argLine} ${surefire.argLine}</argLine> |
655 | 716 | </configuration> |
656 | 717 | </execution> |
657 | 718 | </executions> |
|
782 | 843 | </plugins> |
783 | 844 | </build> |
784 | 845 | </profile> |
785 | | - <profile> |
786 | | - <id>multirelease</id> |
787 | | - <activation> |
788 | | - <jdk>[11,)</jdk> |
789 | | - </activation> |
790 | | - <build> |
791 | | - <plugins> |
792 | | - <plugin> |
793 | | - <groupId>org.codehaus.mojo</groupId> |
794 | | - <artifactId>animal-sniffer-maven-plugin</artifactId> |
795 | | - <configuration> |
796 | | - <ignores> |
797 | | - java.net.http.* |
798 | | - </ignores> |
799 | | - </configuration> |
800 | | - </plugin> |
801 | | - <plugin> |
802 | | - <artifactId>maven-compiler-plugin</artifactId> |
803 | | - <version>3.10.1</version> |
804 | | - <executions> |
805 | | - <execution> |
806 | | - <id>compile-java-11</id> |
807 | | - <phase>compile</phase> |
808 | | - <goals> |
809 | | - <goal>compile</goal> |
810 | | - </goals> |
811 | | - <configuration> |
812 | | - <release>11</release> |
813 | | - <source>11</source> |
814 | | - <target>11</target> |
815 | | - <compileSourceRoots> |
816 | | - <compileSourceRoot>${project.basedir}/src/main/java11</compileSourceRoot> |
817 | | - </compileSourceRoots> |
818 | | - <multiReleaseOutput>true</multiReleaseOutput> |
819 | | - </configuration> |
820 | | - </execution> |
821 | | - </executions> |
822 | | - </plugin> |
823 | | - <plugin> |
824 | | - <groupId>org.apache.maven.plugins</groupId> |
825 | | - <artifactId>maven-jar-plugin</artifactId> |
826 | | - <version>3.3.0</version> |
827 | | - <configuration> |
828 | | - <archive> |
829 | | - <manifestEntries> |
830 | | - <Automatic-Module-Name>org.kohsuke.github.api</Automatic-Module-Name> |
831 | | - <Multi-Release>true</Multi-Release> |
832 | | - </manifestEntries> |
833 | | - </archive> |
834 | | - </configuration> |
835 | | - </plugin> |
836 | | - </plugins> |
837 | | - </build> |
838 | | - </profile> |
839 | | - <profile> |
840 | | - <id>multirelease-test</id> |
841 | | - <activation> |
842 | | - <jdk>[11,)</jdk> |
843 | | - <property> |
844 | | - <name>!test</name> |
845 | | - </property> |
846 | | - </activation> |
847 | | - <build> |
848 | | - <plugins> |
849 | | - <plugin> |
850 | | - <artifactId>maven-surefire-plugin</artifactId> |
851 | | - <executions> |
852 | | - <execution> |
853 | | - <id>java11-test</id> |
854 | | - <phase>integration-test</phase> |
855 | | - <goals> |
856 | | - <goal>test</goal> |
857 | | - </goals> |
858 | | - <configuration> |
859 | | - <classesDirectory>${project.basedir}/target/github-api-${project.version}.jar</classesDirectory> |
860 | | - <useSystemClassLoader>false</useSystemClassLoader> |
861 | | - <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
862 | | - <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=httpclient</argLine> |
863 | | - </configuration> |
864 | | - </execution> |
865 | | - <execution> |
866 | | - <id>java11-urlconnection-test</id> |
867 | | - <phase>integration-test</phase> |
868 | | - <goals> |
869 | | - <goal>test</goal> |
870 | | - </goals> |
871 | | - <configuration> |
872 | | - <classesDirectory>${project.basedir}/target/github-api-${project.version}.jar</classesDirectory> |
873 | | - <useSystemClassLoader>false</useSystemClassLoader> |
874 | | - <excludesFile>src/test/resources/slow-or-flaky-tests.txt</excludesFile> |
875 | | - <argLine>@{jacoco.surefire.argLine} ${surefire.argLine} -Dtest.github.connector=urlconnection</argLine> |
876 | | - </configuration> |
877 | | - </execution> |
878 | | - </executions> |
879 | | - </plugin> |
880 | | - </plugins> |
881 | | - </build> |
882 | | - </profile> |
883 | | - |
884 | 846 | </profiles> |
885 | 847 | <reporting> |
886 | 848 | <plugins> |
|
0 commit comments