mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Disable tests on Java 13 that require an incompatible Gradle version
See gh-19680
This commit is contained in:
parent
f13ff3b939
commit
d454c9653c
@ -21,6 +21,8 @@ import java.io.IOException;
|
||||
|
||||
import org.gradle.testkit.runner.BuildResult;
|
||||
import org.junit.jupiter.api.Test;
|
||||
import org.junit.jupiter.api.condition.DisabledOnJre;
|
||||
import org.junit.jupiter.api.condition.JRE;
|
||||
import org.junit.jupiter.api.extension.ExtendWith;
|
||||
|
||||
import org.springframework.boot.gradle.testkit.GradleBuild;
|
||||
@ -45,11 +47,13 @@ class SpringBootPluginIntegrationTests {
|
||||
.contains("Spring Boot plugin requires Gradle 5.6 or later. The current version is Gradle 5.5.1");
|
||||
}
|
||||
|
||||
@DisabledOnJre(JRE.JAVA_13)
|
||||
@Test
|
||||
void succeedWithVersionOfGradleHigherThanRequired() {
|
||||
this.gradleBuild.gradleVersion("5.6.1").build();
|
||||
}
|
||||
|
||||
@DisabledOnJre(JRE.JAVA_13)
|
||||
@Test
|
||||
void succeedWithVersionOfGradleMatchingWhatIsRequired() {
|
||||
this.gradleBuild.gradleVersion("5.6").build();
|
||||
|
Loading…
Reference in New Issue
Block a user