Skip to content

Commit efc8a51

Browse files
committed
Fluss support jdk 11
1 parent 1b516ad commit efc8a51

File tree

2 files changed

+48
-1
lines changed

2 files changed

+48
-1
lines changed

.github/workflows/ci.yaml

Lines changed: 24 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ concurrency:
3131
cancel-in-progress: true
3232

3333
jobs:
34-
build:
34+
compile-on-jdk8:
3535
runs-on: self-hosted
3636
strategy:
3737
fail-fast: false
@@ -40,9 +40,32 @@ jobs:
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: |

pom.xml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -423,6 +423,29 @@
423423
</dependencyManagement>
424424

425425
<profiles>
426+
<profile>
427+
<id>java11-target</id>
428+
<build>
429+
<plugins>
430+
<plugin>
431+
<groupId>org.apache.maven.plugins</groupId>
432+
<artifactId>maven-compiler-plugin</artifactId>
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>
442+
</compilerArgs>
443+
</configuration>
444+
</plugin>
445+
</plugins>
446+
</build>
447+
</profile>
448+
426449
<profile>
427450
<id>test-coverage</id>
428451
<properties>
@@ -885,6 +908,7 @@
885908
<artifactId>maven-compiler-plugin</artifactId>
886909
<version>3.8.0</version>
887910
<configuration>
911+
<!-- Make sure that we only use Java 8 compatible APIs -->
888912
<source>${target.java.version}</source>
889913
<target>${target.java.version}</target>
890914
<!-- The semantics of this option are reversed, see MCOMPILER-209. -->

0 commit comments

Comments
 (0)