Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in / Register
Toggle navigation
S
spring-boot
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
DEMO
spring-boot
Commits
07e7398d
Commit
07e7398d
authored
Jun 21, 2021
by
Andy Wilkinson
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Include 6.9.x in version requirements message
Fixes gh-26952
parent
6357e4ff
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
SpringBootPlugin.java
.../springframework/boot/gradle/plugin/SpringBootPlugin.java
+2
-2
SpringBootPluginIntegrationTests.java
.../boot/gradle/plugin/SpringBootPluginIntegrationTests.java
+2
-2
No files found.
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/main/java/org/springframework/boot/gradle/plugin/SpringBootPlugin.java
View file @
07e7398d
...
...
@@ -99,8 +99,8 @@ public class SpringBootPlugin implements Plugin<Project> {
private
void
verifyGradleVersion
()
{
GradleVersion
currentVersion
=
GradleVersion
.
current
();
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
);
throw
new
GradleException
(
"Spring Boot plugin requires Gradle 6.8.x, 6.9.x, or 7.x. "
+
"The current version is "
+
currentVersion
);
}
}
...
...
spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/SpringBootPluginIntegrationTests.java
View file @
07e7398d
...
...
@@ -41,8 +41,8 @@ class SpringBootPluginIntegrationTests {
@Test
void
failFastWithVersionOfGradle6LowerThanRequired
()
{
BuildResult
result
=
this
.
gradleBuild
.
gradleVersion
(
"6.7.1"
).
buildAndFail
();
assertThat
(
result
.
getOutput
())
.
contains
(
"Spring Boot plugin requires Gradle 6.8.x
or 7.x. The current version is Gradle 6.7.1"
);
assertThat
(
result
.
getOutput
())
.
contains
(
"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
)
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment