Skip to content

Commit

Permalink
Add Gradle version check
Browse files Browse the repository at this point in the history
  • Loading branch information
io7m committed Aug 24, 2023
1 parent 9886097 commit dcc3f19
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,15 @@ import org.jetbrains.kotlin.de.undercouch.gradle.tasks.download.Download
import org.jetbrains.kotlin.de.undercouch.gradle.tasks.download.Verify
import org.jetbrains.kotlin.gradle.dsl.KotlinAndroidProjectExtension

val gradleVersionRequired = "8.2.1"
val gradleVersionReceived = gradle.gradleVersion

if (gradleVersionRequired != gradleVersionReceived) {
throw GradleException(
"Gradle version $gradleVersionRequired is required to run this build. You are using Gradle $gradleVersionReceived"
)
}

plugins {
id("org.jetbrains.kotlin.jvm")
.version("1.9.0")
Expand Down

0 comments on commit dcc3f19

Please sign in to comment.