mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-07-05 00:56:58 +08:00
Polish "Add Java 14 CI"
See gh-20413
This commit is contained in:
parent
961611aa04
commit
0f5ca030db
@ -42,7 +42,10 @@ public final class GradleCompatibilityExtension implements TestTemplateInvocatio
|
||||
private static final List<String> GRADLE_VERSIONS;
|
||||
|
||||
static {
|
||||
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_13)) {
|
||||
if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_14)) {
|
||||
GRADLE_VERSIONS = Arrays.asList("default");
|
||||
}
|
||||
else if (JavaVersion.current().isCompatibleWith(JavaVersion.VERSION_13)) {
|
||||
GRADLE_VERSIONS = Arrays.asList("6.0.1", "6.1.1", "6.2.2", "default");
|
||||
}
|
||||
else {
|
||||
|
@ -40,6 +40,7 @@ class SpringBootPluginIntegrationTests {
|
||||
|
||||
final GradleBuild gradleBuild = new GradleBuild();
|
||||
|
||||
@DisabledForJreRange(min = JRE.JAVA_14)
|
||||
@Test
|
||||
void failFastWithVersionOfGradleLowerThanRequired() {
|
||||
BuildResult result = this.gradleBuild.gradleVersion("5.5.1").buildAndFail();
|
||||
|
Loading…
Reference in New Issue
Block a user