Skip to content

Commit 1bfc5db

Browse files
committed
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 <akbulut.tugberk@gmail.com>
1 parent 87b0e13 commit 1bfc5db

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.5-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

0 commit comments

Comments
 (0)