Skip to content

Ticket 5.1: Update compiler target to Java 21#3

Open
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/ticket-5.1-java-21-compiler
Open

Ticket 5.1: Update compiler target to Java 21#3
devin-ai-integration[bot] wants to merge 1 commit intodevelop-7.0.xfrom
devin/ticket-5.1-java-21-compiler

Conversation

@devin-ai-integration
Copy link
Copy Markdown

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

Brief Overview

Updates all Maven compiler configuration across the project to target Java 21, up from Java 17. This is a build-config-only change — no Java source code is modified (Java 21 language features are out of scope for this PR).

Changes

  • Root pom.xml: Updated maven-compiler-plugin <source>, <target>, and <release> from 1721; updated gmavenplus-plugin <targetBytecode> from 1721
  • common/pom.xml: Updated module-level maven-compiler-plugin <source> and <target> from 1721
  • admin/broadleaf-admin-module/pom.xml: Updated module-level maven-compiler-plugin <source> and <target> from 1721

All other module POMs (core, integration, admin sub-modules) inherit from the root and have no compiler overrides — verified via search.

Labels: Enhancement, Status: ready-for-code-review

Milestone: 7.0.7-SNAPSHOT

Verification

mvn compile -DskipTests passes for all 13 modules on JDK 21.

Human Review Checklist

  • Confirm no additional module POMs have compiler overrides that were missed
  • Note: common/pom.xml and admin/broadleaf-admin-module/pom.xml do not set <release> (only <source>/<target>), matching their pre-existing pattern — consider whether adding <release>21</release> for consistency is desired
  • Verify Hibernate 5.6.x runtime compatibility with Java 21 (compilation succeeds, but sealed-class / module-system edge cases may surface at runtime)

Link to Devin session: https://app.devin.ai/sessions/3dc8d8ba13094758b84bc8154ab7a1b4
Requested by: @Colhodm


Open with Devin

- Root pom.xml: update maven-compiler-plugin source/target/release from 17 to 21
- Root pom.xml: update gmavenplus-plugin targetBytecode from 17 to 21
- common/pom.xml: update maven-compiler-plugin source/target from 17 to 21
- admin/broadleaf-admin-module/pom.xml: update maven-compiler-plugin source/target from 17 to 21

All 13 modules compile successfully with JDK 21.

Co-Authored-By: Arjun Mishra <arjunsaxmishra@gmail.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

Copy link
Copy Markdown
Author

@devin-ai-integration devin-ai-integration Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

✅ Devin Review: No Issues Found

Devin Review analyzed this PR and found no bugs or issues to report.

Open in Devin Review

devin-ai-integration Bot added a commit that referenced this pull request Apr 17, 2026
…s args, add @TestMethodOrder/@order

- Issue #1: Remove unused Method parameter from CustomerPhoneControllerTest.setupCustomerId()
  to prevent JUnit 5 ParameterResolutionException
- Issue #2: Swap assertEquals argument order from TestNG convention (actual, expected)
  to JUnit 5 convention (expected, actual) in RollbackTest, SystemPropertiesTest, WorkflowTest
- Issue #3: Add @TestMethodOrder(MethodOrderer.OrderAnnotation.class) and @order(N) annotations
  to 21 test classes with execution order dependencies to preserve test method ordering
- Use fully qualified @org.junit.jupiter.api.Order where it conflicts with domain Order class

Co-Authored-By: Arjun Mishra <arjunsaxmishra@gmail.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.

1 participant