Skip to content

Commit

Permalink
Add support for Java 21 (#527)
Browse files Browse the repository at this point in the history
  • Loading branch information
geordi committed Oct 6, 2024
1 parent a1e8068 commit 008b571
Showing 1 changed file with 3 additions and 3 deletions.
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

0 comments on commit 008b571

Please sign in to comment.