From 6ca3a25aacb179046100f6fc83e4def039883f8b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Such=C3=A1nek?= Date: Sat, 14 Oct 2023 18:13:09 +0200 Subject: [PATCH] Update to Java 21 --- .github/workflows/code-style.yml | 2 +- Dockerfile | 2 +- Dockerfile.build | 4 ++-- README.md | 2 +- pom.xml | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/code-style.yml b/.github/workflows/code-style.yml index 9c25cab3c..a2de5586a 100644 --- a/.github/workflows/code-style.yml +++ b/.github/workflows/code-style.yml @@ -12,7 +12,7 @@ jobs: env: JAVA_DISTRIBUTION: temurin - JAVA_VERSION: 17 + JAVA_VERSION: 21 steps: - name: Checkout repository diff --git a/Dockerfile b/Dockerfile index 35dc95a17..86a03781f 100644 --- a/Dockerfile +++ b/Dockerfile @@ -21,7 +21,7 @@ # THE SOFTWARE. # -FROM eclipse-temurin:17-jdk-focal +FROM eclipse-temurin:21-jdk-alpine WORKDIR /fdp diff --git a/Dockerfile.build b/Dockerfile.build index 946815189..f0a435ffe 100644 --- a/Dockerfile.build +++ b/Dockerfile.build @@ -22,7 +22,7 @@ # ################################################################################ # BUILD STAGE -FROM maven:3-eclipse-temurin-17-focal as builder +FROM maven:3-eclipse-temurin-21-alpine as builder WORKDIR /builder @@ -32,7 +32,7 @@ RUN mvn -q -B -U -ff -DskipTests package ################################################################################ # RUN STAGE -FROM eclipse-temurin:17-jdk-focal +FROM eclipse-temurin:21-jdk-alpine WORKDIR /fdp diff --git a/README.md b/README.md index a0c1b9645..f4393b053 100644 --- a/README.md +++ b/README.md @@ -36,7 +36,7 @@ e.g. [app.fairdatapoint.org/swagger-ui.html](https://app.fairdatapoint.org/swagg ### Technology Stack -- **Java** (JDK 17) +- **Java** (JDK 21) - **MongoDB** (4.2) - **Maven** (3.2.5 or higher) - **Docker** (19.03.0-ce or higher) - *for building Docker image only* diff --git a/pom.xml b/pom.xml index 85fccd7c9..8838b716c 100644 --- a/pom.xml +++ b/pom.xml @@ -47,8 +47,8 @@ UTF-8 - 17 - 17 + 21 + 21 1.2.0.RELEASE