Repository navigation
JDK 25 - #4031
JDK 25#4031
Conversation
# Conflicts: # .github/workflows/debian.yml # .github/workflows/dependency-check.yml # .github/workflows/win-exe.yml # .idea/misc.xml # dist/linux/debian/control
There was a problem hiding this comment.
Pull Request Overview
This pull request upgrades the project from Java 24 to Java 25 across the entire codebase, including build configurations, CI/CD workflows, and IDE settings.
Key changes:
- Upgrade JDK version from 24 to 25 in Maven POM and IDE configurations
- Update all GitHub Actions workflows to use Java 25
- Switch Debian packaging from coffeelibs-jdk-24 to openjdk-25-jdk
- Update dependency versions (jacoco, dagger, kotlin)
Reviewed Changes
Copilot reviewed 12 out of 16 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| pom.xml | Update JDK version to 25 and upgrade jacoco to 0.8.14 |
| dist/linux/debian/rules | Update JAVA_HOME paths for openjdk-25 per architecture |
| dist/linux/debian/control | Update build dependency from coffeelibs-jdk-24 to openjdk-25-jdk |
| .idea/misc.xml | Update IntelliJ language level to JDK_25 |
| .idea/compiler.xml | Update annotation processor paths for dagger and kotlin version updates |
| .github/workflows/*.yml | Update all workflow files to use Java 25 |
Files not reviewed (2)
- .idea/compiler.xml: Language not supported
- .idea/misc.xml: Language not supported
Comments suppressed due to low confidence (1)
.idea/compiler.xml:1
- The entire processorPath section (lines 41-68) appears to be duplicated. Lines 43-68 are duplicates of the entries that were already modified in lines 17-42. This duplication should be removed to avoid configuration redundancy.
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
WalkthroughUpdated the project Java toolchain from version 24 to 25 across CI/workflows and project configuration. Changes include updating Estimated code review effort🎯 4 (Complex) | ⏱️ ~45 minutes
Possibly related PRs
Suggested labels
Pre-merge checks and finishing touches✅ Passed checks (3 passed)
✨ Finishing touches🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: CodeRabbit UI Review profile: CHILL Plan: Pro 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
There was a problem hiding this comment.
Actionable comments posted: 0
Caution
Some comments are outside the diff and can’t be posted inline due to platform limitations.
⚠️ Outside diff range comments (2)
.idea/compiler.xml (1)
17-68: Remove duplicate processorPath entries.The processorPath contains an exact duplicate of all dependencies: lines 17-42 are repeated verbatim in lines 43-68. This redundancy will cause annotation processors to run twice and degrade IDE performance.
Remove the duplicate section (lines 43-68) entirely:
<entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-metadata-jvm/2.1.21/kotlin-metadata-jvm-2.1.21.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/dagger/dagger-compiler/2.57.1/dagger-compiler-2.57.1.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/dagger/dagger/2.57.1/dagger-2.57.1.jar" /> - <entry name="$MAVEN_REPOSITORY$/jakarta/inject/jakarta.inject-api/2.0.1/jakarta.inject-api-2.0.1.jar" /> - <entry name="$MAVEN_REPOSITORY$/javax/inject/javax.inject/1/javax.inject-1.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jspecify/jspecify/1.0.0/jspecify-1.0.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/dagger/dagger-spi/2.57.1/dagger-spi-2.57.1.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/code/findbugs/jsr305/3.0.2/jsr305-3.0.2.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/devtools/ksp/symbol-processing-api/2.1.21-2.0.2/symbol-processing-api-2.1.21-2.0.2.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib/2.1.21/kotlin-stdlib-2.1.21.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/annotations/13.0/annotations-13.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/guava/failureaccess/1.0.2/failureaccess-1.0.2.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/guava/guava/33.0.0-jre/guava-33.0.0-jre.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/guava/listenablefuture/9999.0-empty-to-avoid-conflict-with-guava/listenablefuture-9999.0-empty-to-avoid-conflict-with-guava.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/checkerframework/checker-qual/3.41.0/checker-qual-3.41.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/errorprone/error_prone_annotations/2.23.0/error_prone_annotations-2.23.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/j2objc/j2objc-annotations/2.8/j2objc-annotations-2.8.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/squareup/javapoet/1.13.0/javapoet-1.13.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/googlejavaformat/google-java-format/1.5/google-java-format-1.5.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/google/errorprone/javac-shaded/9-dev-r4023-3/javac-shaded-9-dev-r4023-3.jar" /> - <entry name="$MAVEN_REPOSITORY$/com/squareup/kotlinpoet/1.11.0/kotlinpoet-1.11.0.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib-jdk8/1.6.10/kotlin-stdlib-jdk8-1.6.10.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-stdlib-jdk7/1.6.10/kotlin-stdlib-jdk7-1.6.10.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-reflect/1.6.10/kotlin-reflect-1.6.10.jar" /> - <entry name="$MAVEN_REPOSITORY$/net/ltgt/gradle/incap/incap/0.2/incap-0.2.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/checkerframework/checker-compat-qual/2.5.3/checker-compat-qual-2.5.3.jar" /> - <entry name="$MAVEN_REPOSITORY$/org/jetbrains/kotlin/kotlin-metadata-jvm/2.1.21/kotlin-metadata-jvm-2.1.21.jar" /> </processorPath>.github/workflows/win-exe.yml (1)
288-294: CRITICAL: Incomplete Java version update in build-exe matrix.The
build-exematrix still usesjava-version: '24.0.1+9'while thebuild-msimatrix (lines 54-55) has been updated to25.0.0+36. Both jobs should use the same Java version to maintain consistency and ensure that the .exe installer is built with Java 25.Apply this diff to update the build-exe matrix:
- arch: x64 os: windows-latest executable-suffix: x64 java-dist: 'zulu' - java-version: '24.0.1+9' + java-version: '25.0.0+36' java-package: 'jdk'
🧹 Nitpick comments (2)
.github/workflows/win-exe.yml (1)
54-55: TODO comment should be addressed or tracked separately.The inline TODO comment about Temurin compatibility on line 54 indicates uncertainty about switching Java distributions. This should either be resolved as part of this PR or tracked in a GitHub issue to avoid leaving ambiguity in the codebase.
Would you like me to help create a GitHub issue to track the Temurin compatibility question, or should this be resolved before merging?
.github/workflows/build.yml (1)
14-14: Consider pinning the exact Java version for consistency and reproducibility.The build workflow uses
JAVA_VERSION: 25without a full version string (like25.0.0+36in other workflows). While this workflow is not a release workflow, pinning the full version would improve reproducibility and consistency with release workflows. The Temurin distribution will resolve25to the latest patch available, which may vary over time.Apply this diff to pin the full version:
env: JAVA_DIST: 'temurin' - JAVA_VERSION: 25 + JAVA_VERSION: '25.0.0'
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
⛔ Files ignored due to path filters (2)
dist/linux/debian/controlis excluded by!**/dist/**dist/linux/debian/rulesis excluded by!**/dist/**
📒 Files selected for processing (14)
.github/workflows/appimage.yml(1 hunks).github/workflows/build.yml(1 hunks).github/workflows/check-jdk-updates.yml(1 hunks).github/workflows/debian.yml(2 hunks).github/workflows/dependency-check.yml(1 hunks).github/workflows/get-version.yml(1 hunks).github/workflows/mac-dmg-x64.yml(1 hunks).github/workflows/mac-dmg.yml(1 hunks).github/workflows/pullrequest.yml(1 hunks).github/workflows/release-check.yml(1 hunks).github/workflows/win-exe.yml(1 hunks).idea/compiler.xml(2 hunks).idea/misc.xml(1 hunks)pom.xml(2 hunks)
🧰 Additional context used
🧠 Learnings (6)
📓 Common learnings
Learnt from: overheadhunter
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:20-21
Timestamp: 2024-12-11T08:28:24.864Z
Learning: In the Cryptomator project, it's acceptable to update the JDK version (e.g., to JDK 23) while keeping the JavaFX version at an older version (e.g., JavaFX 22.0.2), as this has not caused problems in the past.
Learnt from: infeo
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:19-19
Timestamp: 2024-12-10T17:06:19.650Z
Learning: In the Cryptomator project, the exact JDK version is fixed in release workflows (e.g., `.github/workflows/win-exe.yml`, `.github/workflows/mac-dmg.yml`) to ensure reproducible builds.
📚 Learning: 2024-12-10T17:06:19.650Z
Learnt from: infeo
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:19-19
Timestamp: 2024-12-10T17:06:19.650Z
Learning: In the Cryptomator project, the exact JDK version is fixed in release workflows (e.g., `.github/workflows/win-exe.yml`, `.github/workflows/mac-dmg.yml`) to ensure reproducible builds.
Applied to files:
.github/workflows/build.yml.github/workflows/dependency-check.yml.github/workflows/appimage.yml.github/workflows/get-version.yml.github/workflows/win-exe.yml.github/workflows/release-check.yml.github/workflows/mac-dmg.yml.idea/compiler.xml.github/workflows/pullrequest.ymlpom.xml.github/workflows/debian.yml.github/workflows/mac-dmg-x64.yml.github/workflows/check-jdk-updates.yml
📚 Learning: 2025-01-20T13:49:21.235Z
Learnt from: infeo
Repo: cryptomator/cryptomator PR: 3691
File: .github/workflows/appimage.yml:34-34
Timestamp: 2025-01-20T13:49:21.235Z
Learning: GitHub Actions: The runner label `ubuntu-24.04-arm` is a valid GitHub-hosted runner label for Linux ARM64 architecture, available in preview since January 2025 for public repositories.
Applied to files:
.github/workflows/dependency-check.yml.github/workflows/win-exe.yml
📚 Learning: 2024-12-11T08:28:24.864Z
Learnt from: overheadhunter
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:20-21
Timestamp: 2024-12-11T08:28:24.864Z
Learning: In the Cryptomator project, it's acceptable to update the JDK version (e.g., to JDK 23) while keeping the JavaFX version at an older version (e.g., JavaFX 22.0.2), as this has not caused problems in the past.
Applied to files:
.github/workflows/appimage.yml.github/workflows/release-check.yml.idea/compiler.xmlpom.xml.github/workflows/debian.yml.github/workflows/mac-dmg-x64.yml.github/workflows/check-jdk-updates.yml
📚 Learning: 2025-04-21T16:02:41.510Z
Learnt from: purejava
Repo: cryptomator/cryptomator PR: 3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in public preview since April 2025 for all public repositories.
Applied to files:
.github/workflows/win-exe.yml
📚 Learning: 2025-04-21T16:02:41.510Z
Learnt from: purejava
Repo: cryptomator/cryptomator PR: 3825
File: .github/workflows/win-exe.yml:35-39
Timestamp: 2025-04-21T16:02:41.510Z
Learning: GitHub Actions: The runner label `windows-11-arm` is a valid GitHub-hosted runner label for Windows ARM64 architecture, available in preview since March 2024.
Applied to files:
.github/workflows/win-exe.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (1)
- GitHub Check: Compile and Test
🔇 Additional comments (15)
.idea/misc.xml (1)
11-11: IDE language level update is consistent with project baseline.This change aligns with the pom.xml project.jdk.version update to 25.
pom.xml (2)
29-29: Java version updated consistently across build configuration.The project.jdk.version update to 25 propagates to maven-compiler-plugin (line 309:
<release>${project.jdk.version}</release>).
65-65: JaCoCo 0.8.14 is confirmed to support Java 25.JaCoCo 0.8.14 adds official support for Java 25 and updates to ASM 9.9. The upgrade is compatible and safe for this codebase.
.github/workflows/dependency-check.yml (1)
14-14: Java version aligned with project baseline..github/workflows/pullrequest.yml (1)
8-8: JAVA_VERSION aligned with project baseline..github/workflows/release-check.yml (1)
15-15: Verify intentionality of Java version jump from 23 to 25.This workflow previously used Java 23 and is now jumping to 25. While this aligns with the project baseline update, confirm that no Java 24 release builds were generated with this workflow (which would create a version mismatch).
.github/workflows/get-version.yml (1)
26-26: JAVA_VERSION aligned with project baseline..github/workflows/mac-dmg.yml (2)
25-25: Good: Using specific patch version for release build reproducibility.Pinning to '25.0.0' aligns with the learning about fixing exact JDK versions in release workflows.
54-56: Verify thatcheck-latest: truedoes not compromise reproducible builds.The setup-java action is configured with
check-latest: true, which may fetch a newer patch version than the pinned '25.0.0' if available. Confirm this does not create a reproducibility risk for release artifacts..github/workflows/appimage.yml (1)
22-22: JAVA_VERSION update is consistent with OpenJFX 25 references.The JAVA_VERSION has been correctly updated to
25.0.0to match the OpenJFX 25 URLs referenced in the workflow matrix. No concerns identified..github/workflows/mac-dmg-x64.yml (1)
27-27: JAVA_VERSION updated consistently with OpenJFX 25.The JAVA_VERSION has been correctly updated to
25.0.0and aligns with the OpenJFX 25 modules in the workflow. No concerns identified..github/workflows/check-jdk-updates.yml (1)
9-9: Variable naming and version update are consistent.The
JAVA_VERSIONhas been updated to25.0.0with a clear full version string. The variable name change fromJDK_VERSIONtoJAVA_VERSIONaligns with naming conventions across other workflows. No concerns identified..github/workflows/debian.yml (3)
26-27: JAVA_VERSION and DEB_BUILD_DEPENDS are properly consolidated.The JAVA_VERSION has been updated to
25.0.0, and build dependencies have been properly consolidated into theDEB_BUILD_DEPENDSenvironment variable. The new variable includesopenjdk-25-jdk (>= 25+36)which aligns with the exact version used elsewhere.
31-31: New OPENJFX_JMODS_AARCH64_HASH addition ensures integrity verification.The addition of
OPENJFX_JMODS_AARCH64_HASHon line 31 is necessary and properly complements the aarch64 OpenJFX download and verification logic on lines 78–81. This ensures integrity checking for both architectures. The hash value is consistent with the artifact.
55-61: Refactored dependency installation uses proper apt-get satisfy syntax.The "Install build tools" step has been refactored to use
apt-get satisfywithDEB_BUILD_DEPENDS. This is a cleaner approach compared to managing individual package names. The environment variable is properly passed to the shell context on line 61.Please verify that
apt-get satisfyis supported on ubuntu-22.04. This command was introduced in apt >= 2.3.9. If ubuntu-22.04 uses an older version, an alternative approach may be needed.
| os: windows-latest | ||
| java-dist: 'zulu' | ||
| java-version: '24.0.1+9' | ||
| java-dist: 'zulu' #TODO: is finally temurin possible? |
There was a problem hiding this comment.
There was a problem hiding this comment.
Unfortunately, this still fails (see build 19279755596) with the well known error:
SignTool Error: SignedCode::Sign returned error: 0x800700C1
For more information, please see https://aka.ms/badexeformat
SignTool Error: An error occurred while attempting to sign: D:\a\cryptomator\cryptomator\appdir\Cryptomator\Cryptomator.exe
# Conflicts: # .github/workflows/win-exe.yml
There was a problem hiding this comment.
Actionable comments posted: 1
📜 Review details
Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro
📒 Files selected for processing (5)
.github/workflows/appimage.yml(2 hunks).github/workflows/debian.yml(2 hunks).github/workflows/mac-dmg-x64.yml(1 hunks).github/workflows/mac-dmg.yml(1 hunks).github/workflows/win-exe.yml(1 hunks)
🚧 Files skipped from review as they are similar to previous changes (4)
- .github/workflows/win-exe.yml
- .github/workflows/mac-dmg-x64.yml
- .github/workflows/appimage.yml
- .github/workflows/mac-dmg.yml
🧰 Additional context used
🧠 Learnings (3)
📓 Common learnings
Learnt from: overheadhunter
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:20-21
Timestamp: 2024-12-11T08:28:24.864Z
Learning: In the Cryptomator project, it's acceptable to update the JDK version (e.g., to JDK 23) while keeping the JavaFX version at an older version (e.g., JavaFX 22.0.2), as this has not caused problems in the past.
Learnt from: infeo
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:19-19
Timestamp: 2024-12-10T17:06:19.650Z
Learning: In the Cryptomator project, the exact JDK version is fixed in release workflows (e.g., `.github/workflows/win-exe.yml`, `.github/workflows/mac-dmg.yml`) to ensure reproducible builds.
📚 Learning: 2024-12-10T17:06:19.650Z
Learnt from: infeo
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:19-19
Timestamp: 2024-12-10T17:06:19.650Z
Learning: In the Cryptomator project, the exact JDK version is fixed in release workflows (e.g., `.github/workflows/win-exe.yml`, `.github/workflows/mac-dmg.yml`) to ensure reproducible builds.
Applied to files:
.github/workflows/debian.yml
📚 Learning: 2024-12-11T08:28:24.864Z
Learnt from: overheadhunter
Repo: cryptomator/cryptomator PR: 3641
File: .github/workflows/win-exe.yml:20-21
Timestamp: 2024-12-11T08:28:24.864Z
Learning: In the Cryptomator project, it's acceptable to update the JDK version (e.g., to JDK 23) while keeping the JavaFX version at an older version (e.g., JavaFX 22.0.2), as this has not caused problems in the past.
Applied to files:
.github/workflows/debian.yml
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (3)
- GitHub Check: Build Debian Package
- GitHub Check: Build Cryptomator.app for arm64
- GitHub Check: Build AppImage (ubuntu-24.04-arm, aarch64, https://download2.gluonhq.com/openjfx/25/openjfx-25_li...
🔇 Additional comments (2)
.github/workflows/debian.yml (2)
58-61: I need to search for documentation onapt-get satisfyto verify the syntax and availability on Ubuntu 22.04, since direct sandbox testing isn't feasible.I need to verify the validity of the version string format, particularly the
25+36notation used in the dependencies.Based on my research, apt-get satisfy is designed to satisfy dependency strings as used in Build-Depends, and it's available on Ubuntu 22.04 (the target runner). The
--dry-runflag is a valid alias for--simulate, so that syntax is correct.Regarding the dependency string format, the upstream_version in Debian packages can contain only alphanumerics and the characters "." (full stop), "+" (plus), "-" (hyphen), "~" (tilde). The version string
25+36is valid—the plus sign is allowed within version strings per Debian versioning standards.The dependency string format in your workflow (
'debhelper (>=10), openjdk-25-jdk (>= 25+36), libgtk-3-0 (>= 3.20.0), libxxf86vm1, libgl1') aligns with documented examples like "apt satisfy "foo, bar (>= 1.0)" "Conflicts: baz, fuzz"".However, direct sandbox verification was not possible due to environment limitations. Based on the documentation and syntax alignment, the implementation appears sound, but runtime validation in an actual Ubuntu 22.04 environment is recommended to ensure packages are correctly resolved and installed.
31-31: Verify OpenJFX 25 AARCH64 jmods hash correctness.The OPENJFX_JMODS_AARCH64_HASH references a Gluon-provided Linux-AArch64 build under "unsupported platforms", as OpenJFX 25 does not provide official AArch64 jmods. Since this is a community/unsupported artifact with no official Oracle hash for comparison, manually verify the hash is correct by downloading the artifact from Gluon and confirming the SHA-256 checksum matches before merging.
Updates the build JDK and language level to 25