Skip to content

Commit 5e99536

Browse files
committed
[FLINK-36181] Make sure that JDK11 APIs can be used
1 parent 8d7614e commit 5e99536

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

pom.xml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,7 @@ under the License.
124124
<flink.shaded.jackson.version>2.15.3</flink.shaded.jackson.version>
125125
<flink.shaded.jsonpath.version>2.7.0</flink.shaded.jsonpath.version>
126126
<flink.markBundledAsOptional>true</flink.markBundledAsOptional>
127+
<source.java.version>11</source.java.version>
127128
<target.java.version>17</target.java.version>
128129
<slf4j.version>1.7.36</slf4j.version>
129130
<log4j.version>2.24.1</log4j.version>
@@ -1120,7 +1121,8 @@ under the License.
11201121
<groupId>org.apache.maven.plugins</groupId>
11211122
<artifactId>maven-compiler-plugin</artifactId>
11221123
<configuration>
1123-
<source>17</source>
1124+
<!-- Make sure that we only use Java 11 compatible APIs -->
1125+
<source>11</source>
11241126
<target>17</target>
11251127
<compilerArgs combine.children="append">
11261128
<arg>--add-exports=java.base/sun.net.util=ALL-UNNAMED</arg>
@@ -2082,7 +2084,8 @@ under the License.
20822084
<artifactId>maven-compiler-plugin</artifactId>
20832085
<version>3.8.0</version>
20842086
<configuration>
2085-
<source>${target.java.version}</source>
2087+
<!-- Make sure that we only use Java 11 compatible APIs -->
2088+
<source>${source.java.version}</source>
20862089
<target>${target.java.version}</target>
20872090
<!-- The semantics of this option are reversed, see MCOMPILER-209. -->
20882091
<useIncrementalCompilation>false</useIncrementalCompilation>

0 commit comments

Comments
 (0)