Skip to content

Upgrade from Java 8 to Java 11 (Spring Boot 2.7.18, Gradle 7.6.4) - #63

Open
devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1785901716-java11-upgrade
Open

devin-ai-integration[bot] wants to merge 1 commit into
masterfrom
devin/1785901716-java11-upgrade

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Aug 5, 2026

Copy link
Copy Markdown

Summary

Upgrades the project to build and run on Java 11, keeping Maven and Gradle definitions in sync:

  • pom.xml: java.version 1.8 → 11, spring-boot-starter-parent 2.0.2.RELEASE → 2.7.18 (last 2.x line, officially supports Java 11). spring-boot-properties-migrator kept for now; startup logs show no property-migration warnings, so it can be removed in a follow-up. Also changed <packaging>pom</packaging>jar — with pom packaging Maven never compiled the sources, so the Java 11 build could not actually be verified.
  • build.gradle: spring-boot-gradle-plugin → 2.7.18, sourceCompatibility/targetCompatibilityJavaVersion.VERSION_11, compile/testCompileimplementation/testImplementation, bootJar { baseName/version }archiveBaseName/archiveVersion (removed in Gradle 7). Added spring-boot-starter-jdbc, h2, and spring-boot-properties-migrator to match the Maven dependency set (Gradle build previously lacked them and Application.java's JdbcTemplate usage failed to compile).
  • Gradle wrapper: 4.6 → 7.6.4 (Gradle 4.x cannot run Spring Boot 2.7 / Java 11); gradlew/mvnw made executable.
  • Application.java: wrapped the startup RestTemplate calls to gturnquist-quoters.cfapps.io in try/catch — that service is long dead (UnknownHostException), and with Spring Boot 2.7 the failing CommandLineRunner aborted application startup. No other source changes were needed; no removed Java 8 APIs are used.

Verification (JDK 11.0.28)

  • ./mvnw clean verify — BUILD SUCCESS (sources compiled, jar packaged)
  • ./gradlew clean build — BUILD SUCCESSFUL
  • App starts (java -jar target/gs-spring-boot-0.1.0.jar); GET /, GET /topic, GET /datetime all respond correctly; no properties-migrator warnings in logs.

Link to Devin session: https://app.devin.ai/sessions/ea4c7c6a661f4c73b3b83b66302fab93


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

Co-Authored-By: Abhay Aggarwal <abhay.aggarwal@codeium.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, CI, and merge conflict 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