okhttp의 현재 기준 최신 버전은 5.3.2인데, 패키지명은 계속 okhttp3이다
import okhttp3.OkHttpClient
예전부터 계속 궁금했던 점인데 좀 찾아봤더니, 3.x랑 binary compatible을 맞추려고 이렇게 했다고 한다
We spent a lot of time and energy on retaining strict compatibility with OkHttp 3.x. We’re even keeping the package name the same: okhttp3!
그래서 okhttp 3.x 를 쓰고 있더라도 버전을 4.x 이상으로 올렸을 때 모든 import를 바꾸지 않아도 된다는 것이다
좀 헷갈리긴 하지만 ;; 그냥 그러려니 하려고 한다
참고
- https://square.github.io/okhttp/changelogs/upgrading_to_okhttp_4/
- https://github.com/square/okhttp/issues/4723
반응형
'Software > development' 카테고리의 다른 글
| Jetbrains new UI에서 아이템 사이 간격 줄이기 (0) | 2025.11.29 |
|---|---|
| 도커허브 대체, AWS Public ECR (0) | 2025.10.20 |
| 최근 오픈소스 기여 (0) | 2025.09.27 |
| IntelliJ 구버전 지우기 (0) | 2025.09.22 |
| cherry-studio mcp uv, bun 설정하기 (0) | 2025.08.10 |