Skip to content

Conversation

@devin-ai-integration
Copy link

@devin-ai-integration devin-ai-integration bot commented Oct 23, 2025

Upgrade Java version from 11 to 17

Summary

This PR upgrades the project's Java version from 11 to 17 by updating build configuration and CI pipeline. The changes include:

  • Updated sourceCompatibility and targetCompatibility in build.gradle from '11' to '17'
  • Updated GitHub Actions workflow to use JDK 17 instead of JDK 11
  • Updated GitHub Actions dependencies from v2 to v3 (checkout, setup-java, cache) to fix deprecation errors

Spring Boot 2.6.3 (currently used in this project) officially supports Java 17, so no dependency updates are required for this upgrade. CI tests have passed successfully.

Review & Testing Checklist for Human

  • Run the application locally with Java 17 and verify it starts up without errors. CI tests passing only validates unit tests, not actual application runtime.
  • Test key user flows (registration, login, article CRUD, commenting, following) to ensure no behavioral changes with Java 17
  • Check application logs for any Java 17-related warnings or deprecated API usage that might not cause immediate failures
  • Consider deploying to a staging environment for integration testing before production

Notes

  • While CI tests passed, they only run unit tests (./gradlew clean test). I haven't verified that the full application starts and runs correctly with Java 17.
  • The GitHub Actions version updates (v2 → v3) were necessary to fix a deprecation error that was blocking CI, but are beyond the original scope.

Link to Devin run: https://app.devin.ai/sessions/f7ca513cd111465a95a94c9b6180d175
Requested by: Shawn Azman (shawn@cognition.ai) / @ShawnAzman

- Update sourceCompatibility and targetCompatibility in build.gradle
- Update GitHub Actions workflow to use JDK 17
@devin-ai-integration
Copy link
Author

🤖 Devin AI Engineer

I'll be helping with this pull request! Here's what you should know:

✅ I will automatically:

  • Address comments on this PR. Add '(aside)' to your comment to have me ignore it.
  • Look at CI failures and help fix them

Note: I can only respond to comments from users who have write access to this repository.

⚙️ Control Options:

  • Disable automatic comment and CI monitoring

- Update actions/checkout from v2 to v3
- Update actions/setup-java from v2 to v3
- Update actions/cache from v2 to v3 (fixes deprecation error)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants