build: downgrade JDK to 17

This commit is contained in:
Oscar Mira 2025-03-02 02:16:03 +01:00
parent c15ba3fb22
commit dcc3552daa
No known key found for this signature in database
GPG key ID: B371B98C5DC32237
3 changed files with 4 additions and 4 deletions

View file

@ -3,7 +3,7 @@ plugins {
} }
kotlin { kotlin {
jvmToolchain(21) jvmToolchain(17)
} }
dependencies { dependencies {

View file

@ -6,7 +6,7 @@ plugins {
} }
kotlin { kotlin {
jvmToolchain(21) jvmToolchain(17)
} }
val vendorDir = File(rootDir, "vendor") val vendorDir = File(rootDir, "vendor")

View file

@ -26,9 +26,9 @@ dependencyResolutionManagement {
} }
} }
check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_21)) { check(JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_17)) {
""" """
This project requires JDK 21+ but it is currently using JDK ${JavaVersion.current()}. This project requires JDK 17+ but it is currently using JDK ${JavaVersion.current()}.
Java Home: [${System.getProperty("java.home")}] Java Home: [${System.getProperty("java.home")}]
https://developer.android.com/build/jdks#jdk-config-in-studio https://developer.android.com/build/jdks#jdk-config-in-studio
""".trimIndent() """.trimIndent()