Skip to content

Upgrade from Java 17 to Java 21#22

Open
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/1777546211-upgrade-java-17-to-21
Open

Upgrade from Java 17 to Java 21#22
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/1777546211-upgrade-java-17-to-21

Conversation

@devin-ai-integration
Copy link
Copy Markdown

@devin-ai-integration devin-ai-integration Bot commented Apr 30, 2026

Upgrade from Java 17 to Java 21

Upgrades the entire BroadleafCommerce framework build toolchain from Java 17 to Java 21.

A Brief Overview

Java 21 is the latest LTS release, bringing virtual threads, pattern matching, record patterns, and other language/runtime improvements. This PR updates all compiler and CI configurations to target Java 21.

Changes

  • Root pom.xml: Updated maven-compiler-plugin source/target/release from 17 → 21; updated gmavenplus-plugin targetBytecode from 17 → 21
  • common/pom.xml: Updated maven-compiler-plugin source/target from 17 → 21
  • admin/broadleaf-admin-module/pom.xml: Updated maven-compiler-plugin source/target from 17 → 21
  • Jenkinsfile: Updated build agent from maven-jdk17maven-jdk21

Verification

  • mvn clean install -DskipTests completed successfully (BUILD SUCCESS) across all 12 reactor modules with Java 21.

Additional context

  • No Dockerfiles were found in the repository requiring updates.
  • No documentation files (README, etc.) contained Java version references requiring updates.

Link to Devin session: https://app.devin.ai/sessions/e785efeb1f5f4c86ad99e543f8a2bfe4
Requested by: @joao-cognition


Devin Review

Status Commit
⚪ Not started

💡 Connect your GitHub account to enable automatic code reviews.

Open in Devin Review (Staging)

- Update maven-compiler-plugin source/target/release from 17 to 21 in root pom.xml
- Update maven-compiler-plugin source/target from 17 to 21 in common/pom.xml
- Update maven-compiler-plugin source/target from 17 to 21 in admin/broadleaf-admin-module/pom.xml
- Update gmavenplus-plugin targetBytecode from 17 to 21 in root pom.xml
- Update Jenkinsfile to use maven-jdk21 build agent

Co-Authored-By: Joao Esteves <joao.esteves@cognition.ai>
@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