From 008b5712f433ab7643a6e0ff8d349395a2d82216 Mon Sep 17 00:00:00 2001 From: Jan Gaura Date: Sun, 6 Oct 2024 15:57:28 +0200 Subject: [PATCH] Add support for Java 21 (#527) --- evaluator/images/java/Dockerfile | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/evaluator/images/java/Dockerfile b/evaluator/images/java/Dockerfile index 9250ef00..2c95e7dc 100644 --- a/evaluator/images/java/Dockerfile +++ b/evaluator/images/java/Dockerfile @@ -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\