Support Gradle 7 and raise minimum supported version to 6.8

Closes gh-26026
This commit is contained in:
Andy Wilkinson
2021-04-12 15:14:55 +01:00
parent 8506a00071
commit c4750fd0ff
7 changed files with 13 additions and 14 deletions

View File

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