From 2da8bc1f3b0169e50faa95c15609496a67d9c42d Mon Sep 17 00:00:00 2001 From: Andy Wilkinson Date: Mon, 28 Nov 2022 19:14:41 +0000 Subject: [PATCH] Reduce Gradle versions used for compatibility testing Closes gh-33401 --- .../boot/testsupport/gradle/testkit/GradleVersions.java | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleVersions.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleVersions.java index faf2640a3c..87e6e0bce0 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleVersions.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-test-support/src/main/java/org/springframework/boot/testsupport/gradle/testkit/GradleVersions.java @@ -34,16 +34,15 @@ public final class GradleVersions { public static List allCompatible() { if (isJava18()) { - return Arrays.asList("7.3.3", "7.4.2", GradleVersion.current().getVersion()); + return Arrays.asList("7.3.3", GradleVersion.current().getVersion()); } if (isJava17()) { - return Arrays.asList("7.2", "7.3.3", "7.4.2", GradleVersion.current().getVersion()); + return Arrays.asList("7.2", GradleVersion.current().getVersion()); } if (isJava16()) { - return Arrays.asList("7.0.2", "7.1", "7.2", "7.3.3", "7.4.2", GradleVersion.current().getVersion()); + return Arrays.asList("7.0.2", GradleVersion.current().getVersion()); } - return Arrays.asList("6.8.3", "6.9.3", "7.0.2", "7.1.1", "7.2", "7.3.3", "7.4.2", - GradleVersion.current().getVersion()); + return Arrays.asList("6.8.3", "6.9.3", "7.0.2", GradleVersion.current().getVersion()); } public static String minimumCompatible() {