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:
committed by
Scott Frederick
parent
c64b1d12f2
commit
7e90b4951b
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user