From 1bfc5db19e514e78e9c31e2cee3810e0e99c268b Mon Sep 17 00:00:00 2001 From: Tuguberk Date: Tue, 12 May 2026 13:35:14 +0300 Subject: [PATCH] Upgrade Gradle wrapper from 7.6 to 8.5 for Java 21 support Gradle 7.6 supports Java up to version 19. Building Fast-DDS-Gen on systems where Java 21 is the default JDK fails with: BUG! exception in phase 'semantic analysis' in source unit '_BuildScript_' Unsupported class file major version 65 Class file major version 65 corresponds to Java 21. Gradle 8.5 introduced official Java 21 support. This change upgrades the Gradle wrapper to 8.5, which supports Java 11 through 21. The build itself continues to compile sources to Java 8 bytecode (sourceCompatibility/targetCompatibility = 1.8 in build.gradle), so the produced fastddsgen.jar remains compatible with any Java 8+ runtime. Note: this change depends on eProsima/IDL-Parser#192, which replaces the deprecated Jar.classifier property (removed in Gradle 7) with archiveClassifier. Without that fix, the IDL-Parser submodule build fails under Gradle 7+. Signed-off-by: Tuguberk --- gradle/wrapper/gradle-wrapper.properties | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index 070cb702..a5952066 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -1,5 +1,5 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists