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

Kotlin older versions support #8139

Closed
LikeTheSalad opened this issue Dec 15, 2023 · 4 comments
Closed

Kotlin older versions support #8139

LikeTheSalad opened this issue Dec 15, 2023 · 4 comments
Labels
enhancement Feature not a bug

Comments

@LikeTheSalad
Copy link

Hi!

Some people seem to struggle with upgrading Kotlin in their projects, as shown in this issue, and, because of compatibility issues, if a dependency uses a higher version of Kotlin than the one set in the host project, the Kotlin plugin will complain and refuse to compile :/ which is why we recently decided to provide older language version compatibility support here.

So I was wondering if using the languageVersion/apiVersion config options to provide support for older versions of Kotlin has or could be considered for this project?

@LikeTheSalad LikeTheSalad added the enhancement Feature not a bug label Dec 15, 2023
@yschimke
Copy link
Collaborator

@swankjesse I've been following okio versions mainly, do we have a clear strategy for this?

@swankjesse
Copy link
Collaborator

swankjesse commented Dec 16, 2023

In general, the latest OkHttp will use the latest Okio and the latest Kotlin dependencies. All three libraries follow very strict compatibility rules.

It is safe to compile against OkHttp version X and run against version Y as long as Y >= X, even across major version changes.

If for whatever reason you must run with on an old version of Kotlin, find an old version of OkHttp that uses that old version of Kotlin. Typically this is necessary for Gradle plugins that run in old versions of Gradle.

@LikeTheSalad
Copy link
Author

I see, thank you. One important, recurring concern about using older versions is security. Since you're suggesting using older versions of OkHttp, is it safe to say that those older versions get security updates too? @swankjesse

@yschimke
Copy link
Collaborator

yschimke commented Dec 18, 2023

No. Only 4.x and 5 alpha get security fixes

If you are concerned about security fixes you'll likely be on the latest kotlin also.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Feature not a bug
Projects
None yet
Development

No branches or pull requests

3 participants