2.0.0
This pull request updates the codebase to support Spring Boot 4 and the new tools.jackson package, and makes related dependency and code changes. The main themes are migration from com.fasterxml.jackson to tools.jackson, updating dependencies for Spring Boot 4 compatibility, and minor API improvements.
Migration to tools.jackson:
- Replaced all imports and usages of
com.fasterxml.jackson.databind.*,com.fasterxml.jackson.module.*, andcom.fasterxml.jackson.dataformat.*with theirtools.jacksonequivalents across main and test sources, includingObjectMapper,JsonDeserialize, and YAML handling (YAMLMapperandkotlinModule). [1] [2] [3] [4] [5] [6] [7] [8] [9] [10] [11] [12] [13] [14] [15] [16] [17] [18] [19]
Spring Boot 4 and dependency updates:
- Updated parent and module versions in
pom.xmlfiles from0.5.0-SNAPSHOTto2.0.0-SNAPSHOTto reflect the new release and Spring Boot 4 compatibility. [1] [2] - Added the new
spring-boot-webmvc-testdependency for MockMvc support, and updated the test annotation import toorg.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvcfor Spring Boot 4. [1] [2] - Added direct dependency on
spring-retry(version 2.0.12) since it is no longer managed by the Spring Boot BOM. [1] [2]
Code and API improvements:
- Updated type parameters in
withPropertiesandwithoutPropertiesextension functions to useKProperty1<T, *>for better Kotlin compatibility. [1] [2] - Minor cleanup: removed unnecessary
.findAndRegisterModules()call onjacksonObjectMapper()in test code.
These changes ensure compatibility with Spring Boot 4, migrate to the new Jackson package, and improve type safety and maintainability.
do not merge this one. It's for information purposes only.
- 5 MEDIUMs that require attention on main branch: https://sonarcloud.io/project/issues?impactSeverities=MEDIUM&sinceLeakPeriod=true&issueStatuses=OPEN%2CCONFIRMED&pullRequest=1697&id=embabel_embabel-agent
- README - conflict
from CLAUDE: ✅ Code Quality Verdict
The code changes are high quality:
- Anti-patterns were FIXED (not introduced)
- Backward compatibility carefully preserved
- Excellent inline documentation
- Test coverage updated for new behaviors
- Deprecation warnings added where needed
Well done, @alexheifetz. that must have been an enormous effort.
Looks good from my end, the only minor comment I have is that some commits include unnecessary space removals that muck up the git history. I have indicated where I have noticed them.
Yes, the amount of code changes (mostly related to Jackson 3 upgrade) is significant, but needs to be done in order to move the project forward :)
I noticed when migrating a small embabel example to embabel 2.0.0-SNAPSHOT that the current 2.0.0 branch still uses spring shell 3.x. This still seems to work but to be compatible with spring boot 4 you should also upgrade to spring shell 4.x. Unfortunately the annotations you used are no longer supported in 4.x and have to be replaced as described in the upgrade guide.
Quality Gate passed
Issues
45 New issues
0 Accepted issues
Measures
0 Security Hotspots
82.9% Coverage on New Code
0.0% Duplication on New Code