From 029ada3146ae038dfb74856a47b846f4529650b9 Mon Sep 17 00:00:00 2001 From: Shreck Ye Date: Mon, 4 Nov 2024 04:53:46 +0800 Subject: [PATCH] Bump the JVM toolchain version to 11 The error message from the GitHub Actions workflow of commit 1e4a7112979a88d776161107e9eb148523661a17: ```text > Could not resolve all files for configuration ':buildSrc:compileClasspath'. > Could not resolve com.android.tools.build:gradle:8.5.2. Required by: project :buildSrc > Dependency requires at least JVM runtime version 11. This build uses a Java 8 JVM. ``` --- buildSrc/src/main/kotlin/common-conventions.gradle.kts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/buildSrc/src/main/kotlin/common-conventions.gradle.kts b/buildSrc/src/main/kotlin/common-conventions.gradle.kts index de8d1d92..cb428e99 100644 --- a/buildSrc/src/main/kotlin/common-conventions.gradle.kts +++ b/buildSrc/src/main/kotlin/common-conventions.gradle.kts @@ -21,7 +21,7 @@ kotlin { // for `androidx.compose` jvm() // TODO: `jvm("desktop")`? - jvmToolchain(8) + jvmToolchain(11) //androidTarget()