feat: upgrade to Spring Boot 4.0 with Jackson 3 as the default#33
Open
rossdanderson wants to merge 2 commits into
Open
feat: upgrade to Spring Boot 4.0 with Jackson 3 as the default#33rossdanderson wants to merge 2 commits into
rossdanderson wants to merge 2 commits into
Conversation
- Bump to Spring Boot 4.0.6 / Kotlin 2.2.21; Jackson 3 versions come from the BOM. - util: Jackson 3 becomes the runtime default (api), Jackson 2 is compileOnly; createDataSource defaults to the Jackson 3 handler. - spring starter: JsonHandler bean prefers Jackson 3, falls back to Jackson 2 (spring-boot-jackson2); DataMessageMapping doc references tools.jackson. - spring tests use Logback only (drop slf4j-simple) with a quiet logback-test.xml; add kotest SpringExtension + a context test asserting the Jackson 3 handler. - Docs: README compatibility table + MIGRATION.md (2.x/Boot 3.5 -> 3.x/Boot 4.0). Depends on the ChannelSendOperator removal (PR #30) landing on main first.
# Conflicts: # spring/build.gradle.kts # util/src/main/kotlin/com/caplin/integration/datasourcex/util/SimpleDataSourceFactory.kt
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
Upgrades the library to Spring Boot 4.0 and makes Jackson 3 (
tools.jackson.*) the default JSON binding, matching Spring Boot 4's own default. The Spring Boot 3.5 / Jackson 2 line continues onspringboot-3.5.x(the2.xrelease line).Changes
DataSourceAutoConfigurationnow prefers a Jackson 3JsonHandler, falling back to Jackson 2 only when Jackson 3 is absent and a Jackson 2ObjectMapperis present. Both handlers are@ConditionalOnMissingBean(JsonHandler), so a consumer-defined handler still wins.SimpleDataSourceFactory.createDataSource(...)defaults to the Jackson 3 handler; Jackson 2 artifacts are nowcompileOnlyindatasourcex-util.MIGRATION.mddocuments the2.x → 3.xupgrade (focused: prerequisites, dependency bump, Jackson 3 default, keeping Jackson 2).Merge
Includes a merge of
main, bringing in the#30ChannelSendOperatorremoval and the#32end-to-end starter tests. The mergedDataSourceEndToEndTestwas ported from its Jackson 2ObjectMapperbean to the Jackson 3 equivalent to match this line's default.Verification
./gradlew checkpasses (tests +apiCheck+spotlessCheck). No public.apichange — the breaking change is the Spring Boot 4 / Jackson 3 runtime baseline, hence the major version bump.