From 33085073655536a89e747693ef16664204c6cc34 Mon Sep 17 00:00:00 2001 From: Carl Mastrangelo Date: Wed, 29 Jul 2026 22:11:58 -0700 Subject: [PATCH 1/2] api: Bump Context to JDK 8 --- api/build.gradle | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index 745fa00b3f1..af6fa8edcc9 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -17,13 +17,13 @@ sourceSets { } tasks.named("compileContextJava").configure { - if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_20)) { - println("!!! Javac does not support generating Java 7 bytecode. Do not use for release builds !!!") + if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_27)) { + println("!!! Javac does not support generating Java 8 bytecode. Do not use for release builds !!!") } else if (JavaVersion.current().isJava9Compatible()) { - options.release = 7 + options.release = 8 } else { - sourceCompatibility = JavaVersion.VERSION_1_7 - targetCompatibility = JavaVersion.VERSION_1_7 + sourceCompatibility = JavaVersion.VERSION_1_8 + targetCompatibility = JavaVersion.VERSION_1_8 } } From 8f6d3ebe5093c64335efb1cc0072e38be26383e6 Mon Sep 17 00:00:00 2001 From: Eric Anderson Date: Thu, 30 Jul 2026 08:17:37 -0700 Subject: [PATCH 2/2] Remove Java 27 detection --- api/build.gradle | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/api/build.gradle b/api/build.gradle index af6fa8edcc9..7a2b6ddf216 100644 --- a/api/build.gradle +++ b/api/build.gradle @@ -17,9 +17,7 @@ sourceSets { } tasks.named("compileContextJava").configure { - if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_27)) { - println("!!! Javac does not support generating Java 8 bytecode. Do not use for release builds !!!") - } else if (JavaVersion.current().isJava9Compatible()) { + if (JavaVersion.current().isJava9Compatible()) { options.release = 8 } else { sourceCompatibility = JavaVersion.VERSION_1_8