mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-09-17 12:09:16 +00:00
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
This commit is contained in:
@@ -22,6 +22,10 @@ plugins {
|
||||
id "org.jetbrains.dokka" version "2.1.0"
|
||||
}
|
||||
|
||||
if (!JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_24)) {
|
||||
throw new GradleException("This build requires Java 24 or newer to run, but you are currently using Java ${JavaVersion.current()}")
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
gradlePluginPortal()
|
||||
|
||||
Reference in New Issue
Block a user