From 450c153bf8aec8899ee25f934c28ee081a252038 Mon Sep 17 00:00:00 2001 From: Vahid Garousi Date: Sat, 28 Dec 2024 11:54:12 +0330 Subject: [PATCH] [#240] Check Java version compatibility --- settings.gradle.kts | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/settings.gradle.kts b/settings.gradle.kts index e78a3863..7757f7de 100644 --- a/settings.gradle.kts +++ b/settings.gradle.kts @@ -36,3 +36,11 @@ include(":app-watch:app") include(":app-watch:navigation") include(":app-watch:ui") include(":data:sqldelight") + +check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) { + """ + Compose News project requires JDK 17+ but it is currently using JDK ${JavaVersion.current()}. + Java Home: [${System.getProperty("java.home")}] + https://developer.android.com/build/jdks#jdk-config-in-studio + """.trimIndent() +} \ No newline at end of file