|
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> |
| 434 | + <source>8</source> |
| 435 | + <target>8</target> |
| 436 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
436 | 437 | <compilerArgs combine.children="append"> |
| 438 | + <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
| 439 | + <arg>-Xpkginfo:always</arg> |
| 440 | + </compilerArgs> |
| 441 | + </configuration> |
| 442 | + </plugin> |
| 443 | + </plugins> |
| 444 | + </build> |
| 445 | + </profile> |
| 446 | + <profile> |
| 447 | + <id>java11-target</id> |
| 448 | + <!-- Default target as java 11 --> |
| 449 | + <activation> |
| 450 | + <activeByDefault>true</activeByDefault> |
| 451 | + </activation> |
| 452 | + <build> |
| 453 | + <plugins> |
| 454 | + <plugin> |
| 455 | + <groupId>org.apache.maven.plugins</groupId> |
| 456 | + <artifactId>maven-compiler-plugin</artifactId> |
| 457 | + <configuration> |
| 458 | + <!-- Make sure that we only use Java 8 compatible APIs --> |
| 459 | + <source>${target.java.version}</source> |
| 460 | + <target>${target.java.version}</target> |
| 461 | + <!-- The semantics of this option are reversed, see MCOMPILER-209. --> |
| 462 | + <useIncrementalCompilation>false</useIncrementalCompilation> |
| 463 | + <compilerArgs > |
437 | 464 | <arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg> |
438 | 465 | <arg>--add-exports=java.management/sun.management=ALL-UNNAMED</arg> |
439 | 466 | <arg>--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg> |
440 | 467 | <arg>--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg> |
441 | 468 | <arg>--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg> |
| 469 | + <!-- Prevents recompilation due to missing package-info.class, see MCOMPILER-205 --> |
| 470 | + <arg>-Xpkginfo:always</arg> |
442 | 471 | </compilerArgs> |
443 | 472 | </configuration> |
444 | 473 | </plugin> |
|
531 | 560 | <plugin> |
532 | 561 | <groupId>org.apache.maven.plugins</groupId> |
533 | 562 | <artifactId>maven-compiler-plugin</artifactId> |
| 563 | + <version>3.8.0</version> |
534 | 564 | </plugin> |
535 | 565 |
|
536 | 566 | <plugin> |
|
718 | 748 | <version>[3.1.1,)</version> |
719 | 749 | </requireMavenVersion> |
720 | 750 | <requireJavaVersion> |
721 | | - <version>${target.java.version}</version> |
| 751 | + <version>[1.8,)</version> |
722 | 752 | </requireJavaVersion> |
723 | 753 | </rules> |
724 | 754 | </configuration> |
|
903 | 933 | <skip>true</skip> |
904 | 934 | </configuration> |
905 | 935 | </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 | 936 |
|
923 | 937 | <plugin> |
924 | 938 | <groupId>org.apache.maven.plugins</groupId> |
|
0 commit comments