Skip to content
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

Add support for Java 21 (#527) #528

Merged
merged 1 commit into from
Oct 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions evaluator/images/java/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@ FROM kelvin/base

RUN apt-get update && \
DEBIAN_FRONTEND=noninteractive apt-get install -y \
openjdk-17-jdk \
openjdk-21-jdk \
python3-pip \
wget && \
rm -rf /var/lib/apt/lists/*
RUN wget https://dlcdn.apache.org/maven/maven-3/3.9.4/binaries/apache-maven-3.9.4-bin.tar.gz -P /tmp
RUN wget https://dlcdn.apache.org/maven/maven-3/3.9.9/binaries/apache-maven-3.9.9-bin.tar.gz -P /tmp
RUN tar xf /tmp/apache-maven-*-bin.tar.gz -C /opt
RUN ln -s /opt/apache-maven-3.9.4/ /opt/maven
RUN ln -s /opt/apache-maven-3.9.9/ /opt/maven
RUN echo 'export JAVA_HOME=$(dirname $(dirname $(readlink -f $(which java))))\n\
export M2_HOME=/opt/maven\n\
export MAVEN_HOME=/opt/maven\n\
Expand Down