Skip to content

Commit 7b5725f

Browse files
Merge pull request #39508 from wanger26
* pr/39508: Enforce Gradle version to be at least of version 7.5 Closes gh-39508
2 parents c64b1d1 + 7e90b49 commit 7b5725f

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ public void apply(Project project) {
117117

118118
private void verifyGradleVersion() {
119119
GradleVersion currentVersion = GradleVersion.current();
120-
if (currentVersion.compareTo(GradleVersion.version("7.4")) < 0) {
121-
throw new GradleException("Spring Boot plugin requires Gradle 7.x (7.4 or later). "
120+
if (currentVersion.compareTo(GradleVersion.version("7.5")) < 0) {
121+
throw new GradleException("Spring Boot plugin requires Gradle 7.x (7.5 or later). "
122122
+ "The current version is " + currentVersion);
123123
}
124124
}

Diff for: spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/SpringBootPluginIntegrationTests.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,9 @@ class SpringBootPluginIntegrationTests {
4040
@Test
4141
@DisabledForJreRange(min = JRE.JAVA_20)
4242
void failFastWithVersionOfGradle7LowerThanRequired() {
43-
BuildResult result = this.gradleBuild.gradleVersion("7.3.3").buildAndFail();
43+
BuildResult result = this.gradleBuild.gradleVersion("7.4.1").buildAndFail();
4444
assertThat(result.getOutput())
45-
.contains("Spring Boot plugin requires Gradle 7.x (7.4 or later). The current version is Gradle 7.3.3");
45+
.contains("Spring Boot plugin requires Gradle 7.x (7.5 or later). The current version is Gradle 7.4.1");
4646
}
4747

4848
}

0 commit comments

Comments
 (0)