diff --git a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/KotlinPluginActionIntegrationTests.java b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/KotlinPluginActionIntegrationTests.java index cfb35aa41c..85a089bd50 100644 --- a/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/KotlinPluginActionIntegrationTests.java +++ b/spring-boot-project/spring-boot-tools/spring-boot-gradle-plugin/src/test/java/org/springframework/boot/gradle/plugin/KotlinPluginActionIntegrationTests.java @@ -85,9 +85,13 @@ 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"); } + else { + assertThat(configured).containsExactlyInAnyOrder("help", "clean", "compileJava"); + } } } 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 48bad77dad..3b4083c0c8 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 @@ -35,9 +35,9 @@ public final class GradleVersions { @SuppressWarnings("UnstableApiUsage") public static List allCompatible() { if (isJavaVersion(JavaVersion.VERSION_20)) { - return Arrays.asList("8.1.1", "8.2.1"); + return Arrays.asList("8.1.1", "8.3"); } - return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.2.1"); + return Arrays.asList("7.5.1", GradleVersion.current().getVersion(), "8.0.2", "8.3"); } public static String minimumCompatible() {