Skip to content

chore: upgrade to Java 11+ and update dependencies#353

Open
vaibhavchopra-wq wants to merge 3 commits into
masterfrom
chore/version-deps-ci-updates
Open

chore: upgrade to Java 11+ and update dependencies#353
vaibhavchopra-wq wants to merge 3 commits into
masterfrom
chore/version-deps-ci-updates

Conversation

@vaibhavchopra-wq
Copy link
Copy Markdown

@vaibhavchopra-wq vaibhavchopra-wq commented May 11, 2026

Summary

  • Upgrade minimum Java version from 8 to 11
  • Update GitHub Actions from v2 to v4 with temurin distribution
  • Add CI matrix testing for Java 11, 17, 21
  • Update dependencies to latest versions:
    • OkHttp 3.10.0 → 4.12.0 (major version - OkHttp 4 is Kotlin-based with API changes, tests confirm compatibility)
    • mockito-inline 2.13.0 → mockito-core 5.23.0 (inline merged into core in Mockito 5)
    • commons-codec 1.11 → 1.17.1
    • commons-text 1.3 → 1.12.0 (security fix for CVE-2022-42889 Text4Shell RCE)
    • org.json 20231013 → 20240303
  • Fix deprecated Mockito APIs (anyObject→any, initMocks→openMocks)

Breaking Changes

  • Minimum Java version raised from 8 to 11
  • OkHttp upgraded from 3.x to 4.x (Kotlin-based, API compatible based on passing tests)

Test plan

  • CI passes on Java 11, 17, 21
  • Existing tests continue to pass
  • OkHttp 4 compatibility verified via test suite

🤖 Generated with Claude Code

vaibhavchopra-wq and others added 3 commits May 10, 2026 20:51
- Java: 1.8 → 11
- okhttp: 3.10.0 → 4.12.0
- org.json: 20231013 → 20240303
- commons-codec: 1.11 → 1.17.1
- commons-text: 1.3 → 1.12.0 (fixes CVE-2022-42889)
- mockito-inline: 2.13.0 → 5.2.0
- CI: test Java 11, 17, 21
- GitHub Actions: v2 → v4

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Replace anyObject() with any() (anyObject removed in Mockito 5)
- Replace initMocks() with openMocks() (initMocks deprecated)

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
- Change mockito-inline to mockito-core (inline merged in 5.x)
- Upgrade from 5.2.0 to 5.23.0 for Java 21 Byte Buddy support

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
@vaibhavchopra-wq vaibhavchopra-wq added the TestingNotRequired TestingNotRequired label for BVT label May 13, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

TestingNotRequired TestingNotRequired label for BVT

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant