From 9f4640d62e71a4e9cb4d40a21a6bb00275f166c9 Mon Sep 17 00:00:00 2001 From: Oliver Lietz Date: Tue, 17 Oct 2023 20:04:41 +0200 Subject: [PATCH] #1085 Modernize Java * update Java source/target (release) version to 11 * build with Java 11, 17 and 21 * use Maven Compiler Plugin 3.11.0 --- .github/workflows/maven.yml | 2 +- pom/pom.xml | 7 +++++-- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 5424b7061..6a436a573 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -12,7 +12,7 @@ jobs: strategy: fail-fast: false matrix: - java-version: [ 8, 11 ] + java-version: [ 11, 17, 21 ] os: [ubuntu-latest, windows-latest ] runs-on: ${{ matrix.os }} steps: diff --git a/pom/pom.xml b/pom/pom.xml index 3f7f1217e..e941c80af 100644 --- a/pom/pom.xml +++ b/pom/pom.xml @@ -56,6 +56,9 @@ enforce + + 11 + (3.0.0,) This project requires Maven 3 @@ -134,9 +137,9 @@ org.apache.maven.plugins maven-compiler-plugin + 3.11.0 - 1.8 - 1.8 + 11