mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Disable test when Java version is too high
Gradle 7.3.3 does not support Java 20 so the test that verifies that the plugin fails fast when running on a version of Gradle that it does not support needs to be disabled on Java 20 and later. See gh-35931
This commit is contained in:
parent
f584d6dbd9
commit
641f00f24c
@ -18,6 +18,8 @@ package org.springframework.boot.gradle.plugin;
|
||||
|
||||
import org.gradle.testkit.runner.BuildResult;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledForJreRange;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.boot.testsupport.gradle.testkit.GradleBuild;
|
||||
@ -36,6 +38,7 @@ class SpringBootPluginIntegrationTests {
|
||||
final GradleBuild gradleBuild = new GradleBuild();
|
||||
|
||||
@Test
|
||||
@DisabledForJreRange(min = JRE.JAVA_20)
|
||||
void failFastWithVersionOfGradle7LowerThanRequired() {
|
||||
BuildResult result = this.gradleBuild.gradleVersion("7.3.3").buildAndFail();
|
||||
assertThat(result.getOutput())
|
||||
|
Loading…
Reference in New Issue
Block a user