Skip to content

Commit

Permalink
[#240] Check Java version compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
VahidGarousi committed Dec 28, 2024
1 parent 3056998 commit 450c153
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
}

0 comments on commit 450c153

Please sign in to comment.