mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-09-03 04:26:12 +08:00
Test our Gradle Plugin against Gradle 7.0
See gh-25997
This commit is contained in:
parent
f03f74ff0a
commit
db79fe8b2c
@ -48,10 +48,10 @@ final class GradleCompatibilityExtension implements TestTemplateInvocationContex
|
||||
static {
|
||||
JavaVersion javaVersion = JavaVersion.current();
|
||||
if (javaVersion.isCompatibleWith(JavaVersion.VERSION_16)) {
|
||||
GRADLE_VERSIONS = Arrays.asList("7.0-rc-2");
|
||||
GRADLE_VERSIONS = Arrays.asList("7.0");
|
||||
}
|
||||
else {
|
||||
GRADLE_VERSIONS = Arrays.asList("6.3", "6.4.1", "6.5.1", "6.6.1", "6.7.1", "current", "7.0-rc-2");
|
||||
GRADLE_VERSIONS = Arrays.asList("6.3", "6.4.1", "6.5.1", "6.6.1", "6.7.1", "current", "7.0");
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -63,7 +63,7 @@ public class GradleMultiDslExtension implements TestTemplateInvocationContextPro
|
||||
GradleBuild gradleBuild = new GradleBuild(this.dsl);
|
||||
JavaVersion javaVersion = JavaVersion.current();
|
||||
if (javaVersion.isCompatibleWith(JavaVersion.VERSION_16)) {
|
||||
gradleBuild.gradleVersion("7.0-rc-1");
|
||||
gradleBuild.gradleVersion("7.0");
|
||||
}
|
||||
return Arrays.asList(new GradleBuildFieldSetter(gradleBuild), new GradleBuildExtension());
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user