Skip to content

Gradle plugin allows the use of Gradle 7.4 but the documented and tested minimum is 7.5 #39508

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -123,8 +123,8 @@ public void apply(Project 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);
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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");
}

}