|
82 | 82 | <properties> |
83 | 83 | <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> |
84 | 84 | <project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> |
85 | | - <target.java.version>1.8</target.java.version> |
| 85 | + <target.java.version>11</target.java.version> |
86 | 86 | <maven.compiler.source>${target.java.version}</maven.compiler.source> |
87 | 87 | <maven.compiler.target>${target.java.version}</maven.compiler.target> |
88 | 88 | <test.unit.pattern>**/*Test.*</test.unit.pattern> |
|
424 | 424 |
|
425 | 425 | <profiles> |
426 | 426 | <profile> |
427 | | - <id>java11-target</id> |
| 427 | + <id>java8-target</id> |
428 | 428 | <build> |
429 | 429 | <plugins> |
430 | 430 | <plugin> |
431 | 431 | <groupId>org.apache.maven.plugins</groupId> |
432 | 432 | <artifactId>maven-compiler-plugin</artifactId> |
433 | 433 | <configuration> |
434 | | - <source>11</source> |
435 | | - <target>11</target> |
436 | | - <compilerArgs combine.children="append"> |
437 | | - <arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg> |
438 | | - <arg>--add-exports=java.management/sun.management=ALL-UNNAMED</arg> |
439 | | - <arg>--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg> |
440 | | - <arg>--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg> |
441 | | - <arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg> |
| 434 | + <source>8</source> |
| 435 | + <target>8</target> |
| 436 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 437 | + <compilerArgs > |
| 438 | + <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
| 439 | + <arg>-Xpkginfo:always</arg> |
442 | 440 | </compilerArgs> |
443 | 441 | </configuration> |
444 | 442 | </plugin> |
445 | 443 | </plugins> |
446 | 444 | </build> |
447 | 445 | </profile> |
448 | | - |
449 | 446 | <profile> |
450 | 447 | <id>test-coverage</id> |
451 | 448 | <properties> |
|
531 | 528 | <plugin> |
532 | 529 | <groupId>org.apache.maven.plugins</groupId> |
533 | 530 | <artifactId>maven-compiler-plugin</artifactId> |
| 531 | + <version>3.8.0</version> |
| 532 | + <configuration> |
| 533 | + <source>${target.java.version}</source> |
| 534 | + <target>${target.java.version}</target> |
| 535 | + <!-- The semantics of this option are reversed, see MCOMPILER-209. --> |
| 536 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 537 | + <compilerArgs > |
| 538 | + <arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg> |
| 539 | + <arg>--add-exports=java.management/sun.management=ALL-UNNAMED</arg> |
| 540 | + <arg>--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg> |
| 541 | + <arg>--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg> |
| 542 | + <arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg> |
| 543 | + <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
| 544 | + <arg>-Xpkginfo:always</arg> |
| 545 | + </compilerArgs> |
| 546 | + </configuration> |
534 | 547 | </plugin> |
535 | 548 |
|
536 | 549 | <plugin> |
|
718 | 731 | <version>[3.1.1,)</version> |
719 | 732 | </requireMavenVersion> |
720 | 733 | <requireJavaVersion> |
721 | | - <version>${target.java.version}</version> |
| 734 | + <version>[1.8,)</version> |
722 | 735 | </requireJavaVersion> |
723 | 736 | </rules> |
724 | 737 | </configuration> |
|
903 | 916 | <skip>true</skip> |
904 | 917 | </configuration> |
905 | 918 | </plugin> |
906 | | - <plugin> |
907 | | - <groupId>org.apache.maven.plugins</groupId> |
908 | | - <artifactId>maven-compiler-plugin</artifactId> |
909 | | - <version>3.8.0</version> |
910 | | - <configuration> |
911 | | - <!-- Make sure that we only use Java 8 compatible APIs --> |
912 | | - <source>${target.java.version}</source> |
913 | | - <target>${target.java.version}</target> |
914 | | - <!-- The semantics of this option are reversed, see MCOMPILER-209. --> |
915 | | - <useIncrementalCompilation>false</useIncrementalCompilation> |
916 | | - <compilerArgs> |
917 | | - <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
918 | | - <arg>-Xpkginfo:always</arg> |
919 | | - </compilerArgs> |
920 | | - </configuration> |
921 | | - </plugin> |
922 | 919 |
|
923 | 920 | <plugin> |
924 | 921 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments