From ef0794a1ac0ffa5f91b32b95b7c301f5d0998b1a Mon Sep 17 00:00:00 2001 From: Matthias Kurz Date: Fri, 3 May 2024 16:05:35 +0200 Subject: [PATCH] Adjust gradle versions in tests that are compatible with Java 21 --- .../test/java/play/twirl/gradle/AbstractFunctionalTest.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gradle-twirl/src/test/java/play/twirl/gradle/AbstractFunctionalTest.java b/gradle-twirl/src/test/java/play/twirl/gradle/AbstractFunctionalTest.java index 7cee2539..604dc414 100644 --- a/gradle-twirl/src/test/java/play/twirl/gradle/AbstractFunctionalTest.java +++ b/gradle-twirl/src/test/java/play/twirl/gradle/AbstractFunctionalTest.java @@ -106,6 +106,9 @@ static Stream gradleVersions() { if (JavaVersion.current().compareTo(JavaVersion.VERSION_17) >= 0) { // Gradle 7.3+ return Stream.of("7.6.2", "8.0.2", "8.7"); } + if (JavaVersion.current().compareTo(JavaVersion.VERSION_21) >= 0) { // Gradle 8.4+ + return Stream.of("8.7"); + } return Stream.of("7.1.1", "7.6.2", "8.0.2", "8.7"); } }