Skip to content

Migrate from Java 11 to Java 17#3

Open
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1761819185-migrate-java-17
Open

Migrate from Java 11 to Java 17#3
devin-ai-integration[bot] wants to merge 1 commit intomasterfrom
devin/1761819185-migrate-java-17

Conversation

@devin-ai-integration
Copy link
Copy Markdown

Migrate from Java 11 to Java 17

Summary

This PR migrates the Spring Boot RealWorld application from Java 11 to Java 17. The changes update the Java version configuration in three locations:

  1. build.gradle: Updated sourceCompatibility and targetCompatibility from '11' to '17'
  2. .github/workflows/gradle.yml: Updated GitHub Actions CI workflow to use JDK 17
  3. README.md: Updated documentation to reflect Java 17 requirement

All 68 tests pass successfully with Java 17, and the application compiles without errors.

Review & Testing Checklist for Human

  • Verify CI passes completely
  • Test the application locally with Java 17 installed (./gradlew bootRun and visit http://localhost:8080/tags)
  • Consider if there are any Java 17-specific features or improvements you'd like to leverage in future work

Notes

  • Spring Boot 2.6.3 is compatible with Java 17, so no framework updates were necessary
  • No code changes were required - only version configuration updates
  • Local testing confirmed all compilation and unit tests pass

Link to Devin run: https://app.devin.ai/sessions/ed5eca39a25b4bf990ba7df4deb9ff2c
Requested by: @SachetCognition

- Updated sourceCompatibility and targetCompatibility in build.gradle
- Updated GitHub Actions workflow to use JDK 17
- Updated README documentation to mention Java 17 requirement

All tests pass with Java 17.

Co-Authored-By: sachet.agarwal@windsurf.com <sachet.agarwal@windsurf.com>
@devin-ai-integration
Copy link
Copy Markdown
Author

Original prompt from sachet.agarwal
# Migrate Spring Boot RealWorld Application from Java 11 to Java 17

## Context
This repository is a Spring Boot + MyBatis implementation of the RealWorld example application. It currently uses:
- **Spring Boot version**: 2.6.3
- **Current Java version**: 11
- **Application version**: 0.0.1-SNAPSHOT

## Task
Migrate the application from Java 11 to Java 17.

## Files to Modify

### 1. `build.gradle`
This file currently specifies Java 11 as the source and target compatibility. You need to update the Java version configuration in this file to use Java 17 instead.

The current configuration is located around lines 9-10 of `build.gradle` where the Java version is set to 11.

## Requirements
- Update all Java version references from 11 to 17
- Ensure the build configuration properly targets Java 17
- The application uses Spring Boot 2.6.3, which is compatible with Java 17

## Note
Make sure to update both the source and target compatibility settings to Java 17 in the Gradle build configuration.

You only need to look in the following repo: SachetCognition/spring-boot-realworld-example-app

@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

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