Commit 404b0624 authored by ttschol's avatar ttschol
Browse files

Use JDK 11 instead of JDK 8, but only for Docker container to allow usage of...

Use JDK 11 instead of JDK 8, but only for Docker container to allow usage of skeleton project in the same pipeline
parent 7230118a
Pipeline #51054 passed with stages
in 2 minutes and 33 seconds
......@@ -4,7 +4,7 @@ ENV TZ=UTC
ENV DEBIAN_FRONTEND=noninteractive
ARG MAVEN_VERSION=3.6.1
ARG JDK_VERSION=8
ARG JDK_VERSION=11
ARG PMD_VERSION=6.31.0
WORKDIR /opt
......@@ -33,7 +33,7 @@ RUN pip3 install anybadge
# Install OpenJDK (See: https://adoptopenjdk.net/)
RUN \
wget -O jdk-${JDK_VERSION}.tar.gz https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u282-b08/OpenJDK8U-jdk_x64_linux_hotspot_8u282b08.tar.gz \
wget -O jdk-${JDK_VERSION}.tar.gz https://github.com/AdoptOpenJDK/openjdk11-binaries/releases/download/jdk-11.0.10%2B9/OpenJDK11U-jdk_x64_linux_hotspot_11.0.10_9.tar.gz \
&& mkdir jdk-${JDK_VERSION} && tar zxvf jdk-${JDK_VERSION}.tar.gz -C jdk-${JDK_VERSION} --strip-components 1 \
&& mv jdk-${JDK_VERSION}/ /usr/local/ \
&& rm jdk-${JDK_VERSION}.tar.gz
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment