This is an automated email from the ASF dual-hosted git repository.
dannycranmer pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/flink.git
The following commit(s) were added to refs/heads/master by this push:
new a3e6e468c0c [FLINK-36181][ci] Use Java 11 to run documentation build
a3e6e468c0c is described below
commit a3e6e468c0c35547ed89e2b6e4e349fe0bd09951
Author: Aleksandr Pilipenko <[email protected]>
AuthorDate: Thu Oct 3 21:47:33 2024 +0100
[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