Skip to content

Commit

Permalink
Merge pull request Kaaveh#247 from VahidGarousi/246-check-java-versio…
Browse files Browse the repository at this point in the history
…n-compatibility

Check Java version compatibility
  • Loading branch information
Kaaveh authored Dec 29, 2024
2 parents 3056998 + 450c153 commit 3457e5a
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 3457e5a

Please sign in to comment.