Upgrade project from Java 17 to Java 21 #203
Draft
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR upgrades the entire project from Java 17 to Java 21 across all modules and CI/CD configurations.
Changes Made
Build Configuration Updates
test
anddetekt
jobs to use JDK 21 with Temurin distributionapp/build.gradle
): UpdatedsourceCompatibility
,targetCompatibility
, andkotlinOptions.jvmTarget
to version 21data/repository/build.gradle
): Updated Java compatibility settings to version 21domain/usecase/build.gradle
): Updated Java compatibility settings to version 21domain/model/build.gradle
): Updated Java compatibility settings to version 21Verification
All core functionality has been verified to work with JDK 21:
Technical Details
The upgrade maintains full backward compatibility while leveraging the benefits of Java 21. All Android module configurations now consistently target JDK 21, ensuring uniform build behavior across the multi-module project structure.
The Kotlin compiler target has also been updated to JDK 21, maintaining compatibility with the latest Kotlin version (2.2.10) used in the project.
Testing
No functionality changes were made - this is purely a JDK version upgrade. The existing test suite validates that all business logic continues to work correctly with the new JDK version.
Warning
Firewall rules blocked me from connecting to one or more addresses (expand for details)
I tried to connect to the following addresses, but was blocked by firewall rules:
esm.ubuntu.com
/usr/lib/apt/methods/https
(dns block)If you need me to access, download, or install something from one of these locations, you can either:
✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.