Enforce Gradle version to be at least of version 7.5

See gh-39508

Signed-off-by: Jakob Wanger <jakobwanger@gmail.com>
This commit is contained in:
Jakob Wanger
2024-02-10 15:20:56 -05:00
committed by Scott Frederick
parent c64b1d12f2
commit 7e90b4951b
2 changed files with 4 additions and 4 deletions

View File

@@ -117,8 +117,8 @@ public class SpringBootPlugin implements Plugin<Project> {
private void verifyGradleVersion() {
GradleVersion currentVersion = GradleVersion.current();
if (currentVersion.compareTo(GradleVersion.version("7.4")) < 0) {
throw new GradleException("Spring Boot plugin requires Gradle 7.x (7.4 or later). "
if (currentVersion.compareTo(GradleVersion.version("7.5")) < 0) {
throw new GradleException("Spring Boot plugin requires Gradle 7.x (7.5 or later). "
+ "The current version is " + currentVersion);
}
}