Skip to content

[Improvement-18109][All Modules] Upgrade to Spring Boot 3.2#18110

Closed
singhularity wants to merge 1 commit intoapache:devfrom
singhularity:upgrade/spring-boot-3.2
Closed

[Improvement-18109][All Modules] Upgrade to Spring Boot 3.2#18110
singhularity wants to merge 1 commit intoapache:devfrom
singhularity:upgrade/spring-boot-3.2

Conversation

@singhularity
Copy link
Copy Markdown

@singhularity singhularity commented Mar 31, 2026

Was this PR generated or assisted by AI?

YES — the mechanical changes (javax→jakarta renames, POM version bumps, Lombok annotation processor config) were generated by, a migration agent I built. The Spring Security, AspectJ, and Jakarta Mail fixes were applied by an LLM agent and reviewed manually. All changes were verified to compile successfully.

Purpose of the pull request

Closes #18109

Spring Boot 2.6.1 reached end of life in November 2023 and no longer receives security patches. This upgrades the project to Spring Boot 3.2 with Jakarta EE 10, Spring Security 6, and Java 17 as the minimum version.

Brief change log

  • Bump spring.boot.version from 2.6.1 to 3.2.0
  • Bump java.version from 1.8 to 17
  • Migrate javax.servlet, javax.annotation, javax.mail, javax.activation imports to jakarta.* equivalents (~50 Java files)
  • Update MailSender mailcap handler references from com.sun.mail to org.eclipse.angus.mail
  • Add Jakarta Mail and Activation dependency management to root POM
  • Add Lombok annotation processor configuration to maven-compiler-plugin (~130 POM files)
  • Upgrade Lombok from 1.18.20 to 1.18.36
  • Upgrade maven-compiler-plugin from 3.3 to 3.11.0
  • Migrate AspectJ plugin from org.codehaus.mojo to dev.aspectj 1.14.1 with aspectjtools 1.9.24
  • Add JVM --add-opens arguments for test compatibility
  • Add <release> tag to compiler plugin for Java 17 API compliance

Verify this pull request

This pull request is already covered by existing tests.

All modules compile successfully:

mvn clean compile -DskipTests -Dspotless.check.skip=true
# BUILD SUCCESS

Video Walkthrough

prexplainer-tour-2026-03-31T19-52-05.mp4

Created using PRExplainer

Spring Boot 2.6.1 reached end of life in November 2023. This upgrades
the project to Spring Boot 3.2 with Jakarta EE 10, Spring Security 6,
and Java 17 as the minimum version.

Changes:

- Bump spring.boot.version from 2.6.1 to 3.2.0
- Bump java.version from 1.8 to 17
- Migrate javax.servlet, javax.annotation, javax.mail, javax.activation
  imports to their jakarta.* equivalents across all modules
- Update MailSender mailcap handler references from com.sun.mail to
  org.eclipse.angus.mail (Jakarta Mail provider)
- Add Jakarta Mail and Activation dependency management to root POM
- Add Lombok annotation processor configuration to maven-compiler-plugin
  (required for annotation processing in Java 17+)
- Upgrade Lombok from 1.18.20 to 1.18.36
- Upgrade maven-compiler-plugin from 3.3 to 3.11.0
- Migrate AspectJ plugin from org.codehaus.mojo to dev.aspectj 1.14.1
  with aspectjtools 1.9.24 (old plugin doesn't support Java 17)
- Add JVM --add-opens arguments for test compatibility
- Add <release> tag to compiler plugin for Java 17 API compliance

All modules compile successfully with:
  mvn clean compile -DskipTests -Dspotless.check.skip=true
@boring-cyborg
Copy link
Copy Markdown

boring-cyborg bot commented Mar 31, 2026

Thanks for opening this pull request! Please check out our contributing guidelines. (https://github.com/apache/dolphinscheduler/blob/dev/docs/docs/en/contribute/join/pull-request.md)

@SbloodyS
Copy link
Copy Markdown
Member

SbloodyS commented Apr 1, 2026

Such a big incompatible change needs careful discussion in the community. Please don't rashly submit a similar PR directly, and I will close this PR.

@SbloodyS SbloodyS closed this Apr 1, 2026
@singhularity
Copy link
Copy Markdown
Author

Such a big incompatible change needs careful discussion in the community. Please don't rashly submit a similar PR directly, and I will close this PR.

My apologies! With go through the proper steps next time!

@singhularity singhularity deleted the upgrade/spring-boot-3.2 branch April 1, 2026 01:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Improvement][All Modules] Upgrade to Spring Boot 3.2

2 participants