mirror of
https://github.com/spring-projects/spring-boot.git
synced 2024-08-29 03:06:45 +08:00
Test Gradle plugin against Gradle 8.3
Closes gh-37025
This commit is contained in:
parent
3920f97aa1
commit
6efd9ed0b0
@ -85,9 +85,14 @@ class KotlinPluginActionIntegrationTests {
|
||||
if (GradleVersion.version(this.gradleBuild.getGradleVersion()).compareTo(GradleVersion.version("7.3.3")) < 0) {
|
||||
assertThat(configured).containsExactly("help");
|
||||
}
|
||||
else {
|
||||
else if (GradleVersion.version(this.gradleBuild.getGradleVersion())
|
||||
.compareTo(GradleVersion.version("8.3")) < 0) {
|
||||
assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileKotlin", "compileTestKotlin");
|
||||
}
|
||||
else {
|
||||
assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileJava", "compileKotlin",
|
||||
"compileTestKotlin");
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -34,15 +34,15 @@ public final class GradleVersions {
|
||||
|
||||
public static List<String> allCompatible() {
|
||||
if (isJava18()) {
|
||||
return Arrays.asList("7.3.3", GradleVersion.current().getVersion(), "8.0.2", "8.2.1");
|
||||
return Arrays.asList("7.3.3", GradleVersion.current().getVersion(), "8.0.2", "8.3");
|
||||
}
|
||||
if (isJava17()) {
|
||||
return Arrays.asList("7.2", GradleVersion.current().getVersion(), "8.0.2", "8.2.1");
|
||||
return Arrays.asList("7.2", GradleVersion.current().getVersion(), "8.0.2", "8.3");
|
||||
}
|
||||
if (isJava16()) {
|
||||
return Arrays.asList("7.0.2", GradleVersion.current().getVersion(), "8.0.2", "8.2.1");
|
||||
return Arrays.asList("7.0.2", GradleVersion.current().getVersion(), "8.0.2", "8.3");
|
||||
}
|
||||
return Arrays.asList("6.8.3", "6.9.4", "7.0.2", GradleVersion.current().getVersion(), "8.0.2", "8.2.1");
|
||||
return Arrays.asList("6.8.3", "6.9.4", "7.0.2", GradleVersion.current().getVersion(), "8.0.2", "8.3");
|
||||
}
|
||||
|
||||
public static String minimumCompatible() {
|
||||
|
Loading…
Reference in New Issue
Block a user