Skip to content
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

Okhttp 4.12 forces kotlin upgrade to 1.9 which might be problematic for some customers #169

Open
surbhiia opened this issue Dec 1, 2023 · 1 comment

Comments

@surbhiia
Copy link
Contributor

surbhiia commented Dec 1, 2023

An issue was raised on same here.

Should this repo try to have two versions of okhttp auto-instrumentation -> okhttp3+ and okhttp4.12+ to cover all customers?

@surbhiia surbhiia changed the title Okhttp 4.12 forces kotlin upgrade to 1.9 which might be proble Okhttp 4.12 forces kotlin upgrade to 1.9 which might be problematic for some customers Dec 1, 2023
@marandaneto
Copy link
Member

marandaneto commented Dec 4, 2023

One option is to force the okhttp auto-instrumentation to set apiVersion and languageVersion to at least 1.6 which is the oldest version not deprecated yet.
https://kotlinlang.org/docs/gradle-compiler-options.html#attributes-common-to-jvm-and-js
Maybe that works? not sure if it works when it pulls a compiled jar already or if the compiler is yet able to desugar everything newer, I guess the build would break at least if not supported.

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

No branches or pull requests

2 participants