From 6f1a18af529b7d2394a76ee4ee974a146314fcf3 Mon Sep 17 00:00:00 2001 From: Marcono1234 Date: Mon, 27 Nov 2023 01:34:26 +0100 Subject: [PATCH] Enforce that JDK <= 17 is used for building (#2551) Using JDK 21 currently causes multiple issues, some of which are not easy to fix at the moment (such as target version 7 not being supported anymore). --- README.md | 2 +- pom.xml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index a39a9ea6..cd06c0a4 100644 --- a/README.md +++ b/README.md @@ -83,7 +83,7 @@ Gson uses Maven to build the project: mvn clean verify ``` -JDK 11 or newer is required for building, JDK 17 is recommended. +JDK 11 or newer is required for building, JDK 17 is recommended. Newer JDKs are currently not supported for building (but are supported when _using_ Gson). ### Contributing diff --git a/pom.xml b/pom.xml index 889005d4..3e89ab58 100644 --- a/pom.xml +++ b/pom.xml @@ -120,7 +120,9 @@ - [11,) + + [11,18)