Skip to content

build(deps): upgrade okhttp 5.4.0 and spring-boot 4.1.0 (example)#13

Merged
ilpanich merged 1 commit into
mainfrom
claude/dependency-upgrades
Jul 13, 2026
Merged

build(deps): upgrade okhttp 5.4.0 and spring-boot 4.1.0 (example)#13
ilpanich merged 1 commit into
mainfrom
claude/dependency-upgrades

Conversation

@ilpanich

Copy link
Copy Markdown
Owner

Lands the breaking Dependabot bumps that previously failed CI (#2, #3, #6, #7):

  • okhttp family → 5.4.0 (okhttp, okhttp-urlconnection, mockwebserver, plus the example's mockwebserver). Kept the classic mockwebserver coordinate/API (no test-body rewrite needed). Migrated JavaNetCookieJar to its new okhttp3.java.net.cookiejar module (okhttp 5 moved it out of core) in AxiamClient + 5 test classes — the old shim compiled under javac but failed the stricter javadoc gate.
  • spring-boot 3.5.6 → 4.1.0 (example app). Aligns the example with the SDK, which already targets spring-security 4.1 / spring-test 7 on Java 21. Rewrote SpringBootExampleIT from the removed TestRestTemplate to Spring Framework 7's RestTestClient (preserves all four IT assertions).

Verified locally: root mvn -B verify green (191 tests + JaCoCo + javadoc gate); example mvn -B verify green (4 ITs, full context boot).

🤖 Generated with Claude Code


Generated by Claude Code

Adapt the SDK to the breaking Dependabot major upgrades so they build green.

okhttp 4.12.0 -> 5.4.0 (PR #2, #3, #6):
- Align the whole okhttp family (okhttp core, okhttp-urlconnection,
  mockwebserver) to 5.4.0 in the SDK pom and the spring-boot example pom.
- Keep the legacy com.squareup.okhttp3:mockwebserver artifact, still
  published on the 5.x line with the okhttp3.mockwebserver package and the
  classic MockResponse/MockWebServer API, so no mockwebserver3 rewrite is
  needed.
- okhttp 5 moved JavaNetCookieJar into the okhttp-java-net-cookiejar module
  (okhttp3.java.net.cookiejar package); the okhttp3.JavaNetCookieJar shim in
  okhttp-urlconnection compiles but is rejected by javadoc's stricter symbol
  resolution. Migrate the import in AxiamClient and five test classes to the
  new canonical package (transitively provided by okhttp-urlconnection).

spring-boot 3.5.6 -> 4.1.0 (PR #7):
- Bump the spring-boot-app example's parent to 4.1.0, aligning it with the
  SDK's own spring-boot-starter-security 4.1.0 / spring-test 7.0.8 target.
- Spring Boot 4 removed TestRestTemplate; rewrite SpringBootExampleIT to use
  @LocalServerPort + Spring Framework 7's RestTestClient (servlet stack).

Root: mvn -B verify green (191 tests). Example: mvn -B verify green (4 IT).

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TWxZaJw6wuMd3d5zqyqdcG
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.

2 participants