Skip to content

Upgrade to Java 21 LTS and Spring Boot 3.5.3#260

Open
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782333736-java-21-spring-boot-upgrade
Open

Upgrade to Java 21 LTS and Spring Boot 3.5.3#260
devin-ai-integration[bot] wants to merge 1 commit into
DevOpsfrom
devin/1782333736-java-21-spring-boot-upgrade

Conversation

@devin-ai-integration

@devin-ai-integration devin-ai-integration Bot commented Jun 24, 2026

Copy link
Copy Markdown

Summary

Upgrades the project from Java 17 / Spring Boot 3.3.3 to Java 21 LTS / Spring Boot 3.5.3 (latest stable GA), fixing several inconsistencies in the build config along the way.

pom.xml:

  • spring-boot-starter-parent 3.3.3 → 3.5.3
  • java.version 17 → 21
  • Removed maven-compiler-plugin block that pinned source/target to 1.8 (conflicted with java.version; the parent manages the plugin)
  • mysql:mysql-connector-java:8.0.33com.mysql:mysql-connector-j (version managed by parent) — the old artifact is deprecated

Dockerfile:

  • Builder: maven:3.8.3-openjdk-17maven:3.9-eclipse-temurin-21-alpine (openjdk tags are unmaintained for JDK 17+)
  • Runtime: openjdk:17-alpineeclipse-temurin:21-jre-alpine

SecurityConfig.java:

  • Replaced deprecated AntPathRequestMatcher (marked for removal in Spring Security 6.5) with .logoutUrl("/logout")

application.properties:

  • MySQL8DialectMySQLDialect (deprecated in Hibernate 6.6+)

CI/CD & deploy tooling reviewed — Jenkinsfiles, docker-compose, Helm templates, and k8s manifests use dynamic/templated image tags with no hardcoded Java version references; no changes needed.

Verified: mvn clean verify passes (1 test, 0 failures) on Java 21. Docker image builds and starts successfully on eclipse-temurin:21-jre-alpine.

Link to Devin session: https://app.devin.ai/sessions/4491fdca6de3434489c582eb31f99e52
Requested by: @achalc


Devin Review

Status Commit
⚪ Not started

Run Devin Review

Open in Devin Review (Staging)

- Update spring-boot-starter-parent from 3.3.3 to 3.5.3
- Update java.version from 17 to 21
- Remove conflicting maven-compiler-plugin block (pinned source/target to 1.8)
- Replace deprecated mysql:mysql-connector-java with com.mysql:mysql-connector-j
- Update Dockerfile builder image to maven:3.9-eclipse-temurin-21-alpine
- Update Dockerfile runtime image to eclipse-temurin:21-jre-alpine
- Replace deprecated AntPathRequestMatcher with logoutUrl() in SecurityConfig
- Update deprecated MySQL8Dialect to MySQLDialect in application.properties

Co-Authored-By: Achal Channarasappa <achal.channarasappa@cognition.ai>
@achalc achalc self-assigned this Jun 24, 2026
@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.

1 participant