File tree Expand file tree Collapse file tree 2 files changed +48
-1
lines changed
Expand file tree Collapse file tree 2 files changed +48
-1
lines changed Original file line number Diff line number Diff line change @@ -31,7 +31,7 @@ concurrency:
3131 cancel-in-progress : true
3232
3333jobs :
34- build :
34+ compile-on-jdk8 :
3535 runs-on : self-hosted
3636 strategy :
3737 fail-fast : false
4040 steps :
4141 - name : Checkout code
4242 uses : actions/checkout@v2
43+ - name : Set up JDK 8
44+ uses : actions/setup-java@v4
45+ with :
46+ java-version : ' 8'
47+ distribution : ' temurin'
4348 - name : Build
4449 run : |
4550 mvn -T 1C -B clean install -DskipTests
51+
52+ build-on-jdk11 :
53+ runs-on : self-hosted
54+ strategy :
55+ fail-fast : false
56+ matrix :
57+ module : [ core, flink ]
58+ steps :
59+ - name : Checkout code
60+ uses : actions/checkout@v2
61+ - name : Set up JDK 11
62+ uses : actions/setup-java@v4
63+ with :
64+ java-version : ' 11'
65+ distribution : ' temurin'
66+ - name : Build
67+ run : |
68+ mvn -T 1C -B clean install -DskipTests -Pjava11-target
4669 - name : Test
4770 timeout-minutes : 60
4871 run : |
Original file line number Diff line number Diff line change 425425 </dependencyManagement >
426426
427427 <profiles >
428+ <profile >
429+ <id >java11-target</id >
430+ <build >
431+ <plugins >
432+ <plugin >
433+ <groupId >org.apache.maven.plugins</groupId >
434+ <artifactId >maven-compiler-plugin</artifactId >
435+ <configuration >
436+ <source >11</source >
437+ <target >11</target >
438+ <compilerArgs combine.children=" append" >
439+ <arg >--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg >
440+ <arg >--add-exports=java.management/sun.management=ALL-UNNAMED</arg >
441+ <arg >--add-exports=java.rmi/sun.rmi.registry=ALL-UNNAMED</arg >
442+ <arg >--add-exports=java.security.jgss/sun.security.krb5=ALL-UNNAMED</arg >
443+ <arg >--add-exports=java.base/sun.nio.ch=ALL-UNNAMED</arg >
444+ </compilerArgs >
445+ </configuration >
446+ </plugin >
447+ </plugins >
448+ </build >
449+ </profile >
450+
428451 <profile >
429452 <id >test-coverage</id >
430453 <properties >
879902 <artifactId >maven-compiler-plugin</artifactId >
880903 <version >3.8.0</version >
881904 <configuration >
905+ <!-- Make sure that we only use Java 8 compatible APIs -->
882906 <source >${target.java.version} </source >
883907 <target >${target.java.version} </target >
884908 <!-- The semantics of this option are reversed, see MCOMPILER-209. -->
You can’t perform that action at this time.
0 commit comments