Include 6.9.x in version requirements message
Fixes gh-26952
This commit is contained in:
parent
6357e4fffa
commit
07e7398d10
|
@ -99,8 +99,8 @@ public class SpringBootPlugin implements Plugin<Project> {
|
||||||
private void verifyGradleVersion() {
|
private void verifyGradleVersion() {
|
||||||
GradleVersion currentVersion = GradleVersion.current();
|
GradleVersion currentVersion = GradleVersion.current();
|
||||||
if (currentVersion.compareTo(GradleVersion.version("6.8")) < 0) {
|
if (currentVersion.compareTo(GradleVersion.version("6.8")) < 0) {
|
||||||
throw new GradleException(
|
throw new GradleException("Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. "
|
||||||
"Spring Boot plugin requires Gradle 6.8.x or 7.x. " + "The current version is " + currentVersion);
|
+ "The current version is " + currentVersion);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@ class SpringBootPluginIntegrationTests {
|
||||||
@Test
|
@Test
|
||||||
void failFastWithVersionOfGradle6LowerThanRequired() {
|
void failFastWithVersionOfGradle6LowerThanRequired() {
|
||||||
BuildResult result = this.gradleBuild.gradleVersion("6.7.1").buildAndFail();
|
BuildResult result = this.gradleBuild.gradleVersion("6.7.1").buildAndFail();
|
||||||
assertThat(result.getOutput())
|
assertThat(result.getOutput()).contains(
|
||||||
.contains("Spring Boot plugin requires Gradle 6.8.x or 7.x. The current version is Gradle 6.7.1");
|
"Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. The current version is Gradle 6.7.1");
|
||||||
}
|
}
|
||||||
|
|
||||||
@DisabledForJreRange(min = JRE.JAVA_16)
|
@DisabledForJreRange(min = JRE.JAVA_16)
|
||||||
|
|
Loading…
Reference in New Issue