From a3e6e468c0c35547ed89e2b6e4e349fe0bd09951 Mon Sep 17 00:00:00 2001 From: Aleksandr Pilipenko Date: Thu, 3 Oct 2024 21:47:33 +0100 Subject: [PATCH] [FLINK-36181][ci] Use Java 11 to run documentation build --- .github/workflows/docs.sh | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/docs.sh b/.github/workflows/docs.sh index a7b27926800..63572502e5a 100755 --- a/.github/workflows/docs.sh +++ b/.github/workflows/docs.sh @@ -18,6 +18,11 @@ ################################################################################ set -e +# override env to use Java 11 to for build instead default Java 8 +# path to JDK is taken from https://github.com/apache/flink-connector-shared-utils/blob/ci_utils/docker/base/Dockerfile#L37-L40 +export JAVA_HOME=$JAVA_HOME_11_X64 +export PATH=$JAVA_HOME_11_X64/bin:$PATH + mvn --version java -version javadoc -J-version