commit
eb75bb1339
|
|
@ -123,8 +123,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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -40,9 +40,9 @@ class SpringBootPluginIntegrationTests {
|
|||
@Test
|
||||
@DisabledForJreRange(min = JRE.JAVA_20)
|
||||
void failFastWithVersionOfGradle7LowerThanRequired() {
|
||||
BuildResult result = this.gradleBuild.gradleVersion("7.3.3").buildAndFail();
|
||||
BuildResult result = this.gradleBuild.gradleVersion("7.4.1").buildAndFail();
|
||||
assertThat(result.getOutput())
|
||||
.contains("Spring Boot plugin requires Gradle 7.x (7.4 or later). The current version is Gradle 7.3.3");
|
||||
.contains("Spring Boot plugin requires Gradle 7.x (7.5 or later). The current version is Gradle 7.4.1");
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue