This is an automated email from the ASF dual-hosted git repository.
vladimirsitnikov pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/jmeter.git
The following commit(s) were added to refs/heads/master by this push:
new 76bf21fb9e chore: make sure the build fails with a reasonable message
if the build Java version is less than 17
76bf21fb9e is described below
commit 76bf21fb9ea9c92718b5af6c3e5f14f57bcd09c3
Author: Vladimir Sitnikov <[email protected]>
AuthorDate: Wed Dec 13 20:02:51 2023 +0300
chore: make sure the build fails with a reasonable message if the build
Java version is less than 17
---
settings.gradle.kts | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/settings.gradle.kts b/settings.gradle.kts
index 8c02bc164a..1b9af89152 100644
--- a/settings.gradle.kts
+++ b/settings.gradle.kts
@@ -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"