Skip to content

Commit

Permalink
chore: make sure the build fails with a reasonable message if the bui…
Browse files Browse the repository at this point in the history
…ld Java version is less than 17
  • Loading branch information
vlsi committed Dec 13, 2023
1 parent 91fa704 commit 76bf21f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ dependencyResolutionManagement {
}
}

if (JavaVersion.current() < JavaVersion.VERSION_17) {
throw UnsupportedOperationException("Please use Java 17 or 21 for launching Gradle when building JMeter, the current Java is ${JavaVersion.current().majorVersion}")
}

// This is the name of a current project
// Note: it cannot be inferred from the directory name as developer might clone JMeter to jmeter_tmp folder
rootProject.name = "jmeter"
Expand Down

0 comments on commit 76bf21f

Please sign in to comment.