Skip to content

Commit 4730dcf

Browse files
committed
Merge pull request #46818 from BenchmarkingBuffalo
* pr/46818: Polish "Fail fast with explicit error message for incompatible JDK version" Fail fast with explicit error message for incompatible JDK version Closes gh-46818
2 parents 024bb72 + afc24ae commit 4730dcf

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

buildSrc/build.gradle

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ plugins {
2222
id "org.jetbrains.dokka" version "2.1.0"
2323
}
2424

25+
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_24)) {
26+
throw new GradleException("This build requires Java 24 or newer to run, but you are currently using Java ${JavaVersion.current()}")
27+
}
28+
2529
repositories {
2630
mavenCentral()
2731
gradlePluginPortal()

0 commit comments

Comments
 (0)