spring-boot: fix missing folder for jdk17 (#7813)

Fix missing folder for jdk17
This commit is contained in:
psy 2022-06-07 15:40:05 +02:00 committed by GitHub
parent e36b080f59
commit f96a9ca1d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -25,6 +25,7 @@ RUN git clone --depth 1 https://github.com/dvyukov/go-fuzz-corpus && \
rm -rf go-fuzz-corpus
ARG java_home="/out/open-jdk-17"
RUN mkdir -p $JAVA_HOME
RUN apt update && apt install -y openjdk-17-jdk
ENV JAVA_HOME $java_home

View File

@ -17,7 +17,7 @@
mv $SRC/{*.zip,*.dict} $OUT
cp -r "/usr/lib/jvm/java-17-openjdk-amd64/" "$JAVA_HOME"
cp -r "/usr/lib/jvm/java-17-openjdk-amd64/." "$JAVA_HOME"
CURRENT_VERSION=$(./gradlew properties --no-daemon --console=plain | sed -nr "s/^version:\ (.*)/\1/p")