Skip to content

Migrate from Java 11 to Java 17#2

Open
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
devin/1759495966-java-17-migration
Open

Migrate from Java 11 to Java 17#2
devin-ai-integration[bot] wants to merge 2 commits intomasterfrom
devin/1759495966-java-17-migration

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Oct 3, 2025

Migrate from Java 11 to Java 17

Summary

Upgrades the Spring Boot application from Java 11 to Java 17 as requested. The changes include:

  • Updated build.gradle to use Java 17 for source and target compatibility
  • Updated GitHub Actions CI pipeline to use JDK 17 instead of JDK 11
  • Fixed deprecated actions/cache@v2actions/cache@v4 (was causing CI failures)

All local verification passed successfully:

  • ✅ Code compiles with Java 17
  • ✅ All 68 tests pass
  • ✅ Application starts successfully on localhost:8080
  • ✅ Core functionality works (tested /tags endpoint)

Review & Testing Checklist for Human

  • End-to-end functionality verification: Run the application locally and test key user flows beyond just the /tags endpoint to ensure no runtime compatibility issues with Java 17
  • CI passes: Verify that GitHub Actions build now succeeds with JDK 17 and the updated actions/cache@v4

Notes

  • Spring Boot 2.6.3 officially supports Java 17, and all major dependencies (MyBatis 2.2.2, Netflix DGS 4.9.21, JWT libraries) appear compatible
  • The actions/cache update from v2→v4 was necessary because GitHub deprecated v2 as of December 5, 2024
  • No application code changes were required - only configuration updates

Requested by: @SachetCognition
Devin session: https://app.devin.ai/sessions/699a4ed8f3bd4281bbb56846e2e7e126

- Update sourceCompatibility and targetCompatibility from 11 to 17 in build.gradle
- Update GitHub Actions workflow to use JDK 17 instead of JDK 11
- All tests pass and application runs successfully with Java 17

Co-Authored-By: sachet.agarwal@windsurf.com <sachet.agarwal@windsurf.com>
@devin-ai-integration
Copy link
Copy Markdown
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

GitHub deprecated actions/cache@v2 which was causing CI to fail during job setup.
Updated to v4 to allow CI to properly test the Java 17 migration.

Co-Authored-By: sachet.agarwal@windsurf.com <sachet.agarwal@windsurf.com>
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.

0 participants