Skip to content

Add a flag to specify the JDK version to package with Bazel when building the container image #2187

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

lruellan
Copy link

@lruellan lruellan commented Mar 8, 2025

The current build script includes the Java 8 JDK but rules_jvm_external extension requires Java 11 (https://github.com/bazel-contrib/rules_jvm_external/releases/tag/6.7).

@@ -21,6 +23,10 @@ if [ -z "${BAZEL_VERSION}" ]; then
exit 1
fi

if [ -z "$JAVA_VERSION" ]; then
JAVA_VERSION="openjdk-8-jdk"
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think there is no hurt to upgrade the default JDK version to 11 or even 21?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants