From f8a2c361a8b679b6404c4f2f2f7069a50d729439 Mon Sep 17 00:00:00 2001 From: Rafael Winterhalter Date: Wed, 22 Nov 2023 12:41:28 +0100 Subject: [PATCH] Define upper version. --- byte-buddy-gradle-plugin/common.gradle | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/byte-buddy-gradle-plugin/common.gradle b/byte-buddy-gradle-plugin/common.gradle index d49f191224..b120b8f644 100644 --- a/byte-buddy-gradle-plugin/common.gradle +++ b/byte-buddy-gradle-plugin/common.gradle @@ -25,6 +25,8 @@ def sourceVersion = System.getProperty("net.bytebuddy.gradle.version.source") def source if (sourceVersion != null) { source = JavaVersion.toVersion(sourceVersion) +} else if (current > JavaVersion.VERSION_19) { + source = JavaVersion.VERSION_1_8 } else if (current > JavaVersion.VERSION_1_9) { source = JavaVersion.VERSION_1_7 } else if (current > JavaVersion.VERSION_1_8) { @@ -36,6 +38,8 @@ def targetVersion = System.getProperty("net.bytebuddy.gradle.version.target") def target if (targetVersion != null) { target = JavaVersion.toVersion(targetVersion) +} else if (current > JavaVersion.VERSION_19) { + target = JavaVersion.VERSION_1_8 } else if (current > JavaVersion.VERSION_1_9) { target = JavaVersion.VERSION_1_7 } else if (current > JavaVersion.VERSION_1_8) {