Skip to content

Commit 641f00f

Browse files
committed
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
1 parent f584d6d commit 641f00f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/SpringBootPluginIntegrationTests.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@
1818

1919
import org.gradle.testkit.runner.BuildResult;
2020
import org.junit.jupiter.api.Test;
21+
import org.junit.jupiter.api.condition.DisabledForJreRange;
22+
import org.junit.jupiter.api.condition.JRE;
2123
import org.junit.jupiter.api.extension.ExtendWith;
2224

2325
import org.springframework.boot.testsupport.gradle.testkit.GradleBuild;
@@ -36,6 +38,7 @@ class SpringBootPluginIntegrationTests {
3638
final GradleBuild gradleBuild = new GradleBuild();
3739

3840
@Test
41+
@DisabledForJreRange(min = JRE.JAVA_20)
3942
void failFastWithVersionOfGradle7LowerThanRequired() {
4043
BuildResult result = this.gradleBuild.gradleVersion("7.3.3").buildAndFail();
4144
assertThat(result.getOutput())

0 commit comments

Comments
 (0)