Skip to content

feat: Prepare ORS update to Spring Boot 4 - #120

Open
takb wants to merge 5 commits into
ors_4.0from
ors_4.0_update_spring
Open

feat: Prepare ORS update to Spring Boot 4#120
takb wants to merge 5 commits into
ors_4.0from
ors_4.0_update_spring

Conversation

@takb

@takb takb commented Aug 27, 2026

Copy link
Copy Markdown

Required changes to work with ORS when it switches to Spring Boot 4.
Most is about replacing Jackson 2 with Jackson 3.

takb added 5 commits August 27, 2026 09:45
jackson-datatype-jts 2.14 has no source in this repo and no Jackson 3
release. Port the small upstream module instead of depending on one
materializing; vendor it as com.graphhopper.jackson.geojson.

Self-contained, no callers yet. Adds Jackson 3 alongside Jackson 2 in
web-api. Includes round-trip tests for all 7 geometry types.

Assisted-by: Claude Code
Replace duplicated ObjectMapper+JtsModule GeoJSON parsing in
GraphHopper, LMPreparationHandler, and GHUtility with a shared
GeoJsonMapper. Preserve LMPreparationHandler's graceful-degrade on
malformed files (now catching JacksonException). core now depends on
Jackson 3 directly.

Assisted-by: Claude Code
…dule

Port the remaining 12 (de)serializers plus GraphHopperModule,
Jackson.java, and Gpx.java -- these move together since
GraphHopperModule wires all 12 in one constructor.

Key API changes: ObjectMapper -> JsonMapper.builder(),
PropertyNamingStrategies.SNAKE_CASE, ObjectCodec removed
(ctxt.readTreeAsValue), asText/isTextual -> asString/isString,
fields() -> properties().iterator(). ResponsePathDeserializer's
static helper signatures change accordingly (internal callers only).

Assisted-by: Claude Code
Assisted-by: Claude Code
@takb
takb force-pushed the ors_4.0_update_spring branch from b7380dc to 6cc7655 Compare August 27, 2026 09:46
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