Migrate to jdk 21 (#2295)

* docker containers using images with jre 21
* project is still building with target java 17 - so jar artifacts are java 17 compatible
* provided option to have different version for client libraries (e.g. ddi and management REST api)

Signed-off-by: Avgustin Marinov <Avgustin.Marinov@bosch.com>
This commit is contained in:
Avgustin Marinov
2025-03-27 09:28:28 +02:00
committed by GitHub
parent 21ec2e581a
commit 70949769de
10 changed files with 20 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
# set Java
ARG JAVA_VERSION=17.0.14_7
ARG JAVA_VERSION=21.0.6_7
# extracts spring layers from the app jar (to optimize boot)
FROM eclipse-temurin:${JAVA_VERSION}-jre-alpine as build