Merge pull request #19680 from dreis2211

* gh-19680:
  Disable tests on Java 13 that require an incompatible Gradle version

Closes gh-19680
pull/19711/head
Andy Wilkinson 5 years ago
commit 5c0b7b7e67

@ -21,6 +21,8 @@ import java.io.IOException;
import org.gradle.testkit.runner.BuildResult; import org.gradle.testkit.runner.BuildResult;
import org.junit.jupiter.api.Test; 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.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.gradle.testkit.GradleBuild; 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"); .contains("Spring Boot plugin requires Gradle 5.6 or later. The current version is Gradle 5.5.1");
} }
@DisabledOnJre(JRE.JAVA_13)
@Test @Test
void succeedWithVersionOfGradleHigherThanRequired() { void succeedWithVersionOfGradleHigherThanRequired() {
this.gradleBuild.gradleVersion("5.6.1").build(); this.gradleBuild.gradleVersion("5.6.1").build();
} }
@DisabledOnJre(JRE.JAVA_13)
@Test @Test
void succeedWithVersionOfGradleMatchingWhatIsRequired() { void succeedWithVersionOfGradleMatchingWhatIsRequired() {
this.gradleBuild.gradleVersion("5.6").build(); this.gradleBuild.gradleVersion("5.6").build();

Loading…
Cancel
Save