embabel-agent icon indicating copy to clipboard operation
embabel-agent copied to clipboard

2.0.0

Open alexheifetz opened this issue 6 months ago • 6 comments

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.*, and com.fasterxml.jackson.dataformat.* with their tools.jackson equivalents across main and test sources, including ObjectMapper, JsonDeserialize, and YAML handling (YAMLMapper and kotlinModule). [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.xml files from 0.5.0-SNAPSHOT to 2.0.0-SNAPSHOT to reflect the new release and Spring Boot 4 compatibility. [1] [2]
  • Added the new spring-boot-webmvc-test dependency for MockMvc support, and updated the test annotation import to org.springframework.boot.webmvc.test.autoconfigure.AutoConfigureMockMvc for 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 withProperties and withoutProperties extension functions to use KProperty1<T, *> for better Kotlin compatibility. [1] [2]
  • Minor cleanup: removed unnecessary .findAndRegisterModules() call on jacksonObjectMapper() in test code.

These changes ensure compatibility with Spring Boot 4, migrate to the new Jackson package, and improve type safety and maintainability.

alexheifetz avatar May 30 '26 05:05 alexheifetz

do not merge this one. It's for information purposes only.

alexheifetz avatar May 30 '26 05:05 alexheifetz

  1. 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
  2. README - conflict

igordayen avatar Jun 04 '26 20:06 igordayen

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

igordayen avatar Jun 04 '26 23:06 igordayen

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 :)

alexheifetz avatar Jun 07 '26 01:06 alexheifetz

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.

urferr avatar Jun 10 '26 12:06 urferr