From 214683e3bcd91e00d3125c38c59f5688bcea73a3 Mon Sep 17 00:00:00 2001 From: Philip Riecks Date: Thu, 15 Feb 2024 08:10:22 +0100 Subject: [PATCH] migrate to Java 17 and Spring Boot 3.2.1 (#82) --- .github/workflows/maven.yml | 6 +++--- .java-version | 2 +- README.md | 12 ++++++------ pom.xml | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7fbe635..e3f143a 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -5,17 +5,17 @@ on: - cron: '0 15 * * *' # daily at 3pm jobs: build-and-test: - runs-on: ubuntu-20.04 + runs-on: ubuntu-latest name: Build Application steps: - name: Checkout Code uses: actions/checkout@v3 - - name: Setup for JDK 17 + - name: Setup for JDK 21 uses: actions/setup-java@v3 with: distribution: temurin - java-version: 17 + java-version: 21 java-package: jdk cache: maven diff --git a/.java-version b/.java-version index 03b6389..5f39e91 100644 --- a/.java-version +++ b/.java-version @@ -1 +1 @@ -17.0 +21.0 diff --git a/README.md b/README.md index 7cd7f20..90ecde1 100644 --- a/README.md +++ b/README.md @@ -2,8 +2,8 @@ # About the Primer -[![](https://img.shields.io/badge/Spring%20Boot%20Version-3.1.0-orange)](/pom.xml) -[![](https://img.shields.io/badge/Java%20Version-17-orange)](/pom.xml) +[![](https://img.shields.io/badge/Spring%20Boot%20Version-3.2.1-orange)](/pom.xml) +[![](https://img.shields.io/badge/Java%20Version-21-orange)](/pom.xml) [![](https://img.shields.io/badge/Enroll-Now-orange)](https://rieckpil.de/testing-spring-boot-applications-primer/) `main` branch: [![Build & Test Maven Project (main)](https://github.com/rieckpil/testing-spring-boot-applications-primer/workflows/Build%20&%20Test%20Maven%20Project/badge.svg)](https://github.com/rieckpil/testing-spring-boot-applications-primer/actions/workflows/maven.yml?query=branch%3Amain) @@ -40,13 +40,13 @@ Enroll [here](https://rieckpil.de/testing-spring-boot-applications-primer/) for Mandatory requirements: -* Java 17 (JDK flavour (OpenJDK/Azul/Oracle) does not matter). For the correct Java version setup I can recommend [JEnv](https://www.youtube.com/watch?v=9FVZyeFDXo0) (Mac/Linux) and the [Maven Toolchains Plugin](https://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/jdk.html) (Windows) +* Java 21 (JDK flavour (OpenJDK/Azul/Oracle) does not matter). For the correct Java version setup I can recommend [JEnv](https://www.youtube.com/watch?v=9FVZyeFDXo0) (Mac/Linux) and the [Maven Toolchains Plugin](https://maven.apache.org/plugins/maven-toolchains-plugin/toolchains/jdk.html) (Windows) ``` $ java -version -openjdk version "17" 2021-09-14 LTS -OpenJDK Runtime Environment Zulu17.28+13-CA (build 17+35-LTS) -OpenJDK 64-Bit Server VM Zulu17.28+13-CA (build 17+35-LTS, mixed mode, sharing) +openjdk version "21.0.2" 2024-01-16 LTS +OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) +OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode) ``` * Docker Engine (Community Edition is enough): diff --git a/pom.xml b/pom.xml index e5f3905..ef8ead6 100644 --- a/pom.xml +++ b/pom.xml @@ -6,7 +6,7 @@ org.springframework.boot spring-boot-starter-parent - 3.1.1 + 3.2.1 @@ -16,7 +16,7 @@ spring-boot-testing-primer - 17 + 21 1.18.3 4.8.3 6.16.0