Skip to content

Bump okhttp to 5.1.0 #440

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Jul 31, 2025
Merged

Bump okhttp to 5.1.0 #440

merged 3 commits into from
Jul 31, 2025

Conversation

gabrielfeo
Copy link
Owner

@gabrielfeo gabrielfeo commented Jul 31, 2025

Bump okhttp to 5.1.0 and re-order dependency declarations so that the Kotlin kernel for Jupyter will use the higher version of okio, 3.15.0, which is requested and required by okhttp:5.1.0, avoiding a runtime failure.

The change in the buildscript is reflected in the library's published .pom file. It appears that the kernel will pick the first seen version of an artifact when traversing the dependencies and does not consider dependency constraints. okhttp must be declared first in the pom file and moshi, which depends on an older version of okio, must be declared later.

This bump without re-ordering dependencies would result in a failure as described in Kotlin/kotlin-jupyter#484 and seen in this build scan from #425.

Copy link
Contributor

Job Summary for Gradle

Check PR :: kotlin-tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
develocity-api-kotlin check 8.14.3 Build Scan published

Copy link
Contributor

Job Summary for Gradle

Check PR :: kotlin-tests
Gradle Root Project Requested Tasks Gradle Version Build Outcome Build Scan®
develocity-api-kotlin check 8.14.3 Build Scan published

@gabrielfeo gabrielfeo marked this pull request as ready for review July 31, 2025 22:32
@gabrielfeo gabrielfeo enabled auto-merge (squash) July 31, 2025 22:35
@gabrielfeo gabrielfeo merged commit 7b2e01c into main Jul 31, 2025
7 checks passed
@gabrielfeo gabrielfeo deleted the gf/okhttp branch July 31, 2025 22:39
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