-
-
Notifications
You must be signed in to change notification settings - Fork 175
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
This module shouldn't bring kotlin-reflect 1.5 as a transitive dependency #566
Comments
Unfortunately, In order to avoid similar problems, our policy will be to use the most recent patch version within the smallest minor version that has not been deprecated. |
@k163377 the issues with Kotlin 1.4 was actually resolved in #557
I did take care of Kotlin 1.4 and can do it for some time.
I personally don't think it's a very user-friendly version. Even JetBrains officially update and support the last three minor Kotlin releases.
Not just the documentation, but the target will need to change. If Kotlin 1.4 is officially not supported, there should be no binary compatibility with Kotlin 1.4 (not being able to run at all is better that running incorrectly) |
@Spikhalskiy
For example, we currently use within
To be precise, we were going to update the documentation and remove the tests in I noticed that it would be preferable to also remove the code for compatibility with |
This sounds good. Supporting [1.5,) when 1.8 is the latest released version is good enough!
Correct. I think we should make This can be achieved by building against Kotlin 1.6. Because Kotlin supports binary compatibility with one minor version down. So building against Kotlin 1.6 brings compatibility with 1.5, but not 1.4.
|
This specific issue should be solved by declaring |
Hey @Spikhalskiy -- have you had a chance to try this yet?
I encountered the same issue and imagined the same solution. If you're busy, I can try it myself, but if you already tried it and learned something, can you share? |
Describe the bug
Currently, when I build my project with Kotlin 1.4 and using this module, I get errors and warnings which are caused by this module bringing kotlin-reflect 1.5 as a transitive dependency into Kotlin 1.4 classpath and runtime:
It's caused by the following descriptor:
kotlin-stdlib
is correctly defined asprovided
, butkotlin-reflect
for some reason is defined ascompile
explicitly, which is weird. This was introduced in the commit: eedfb16#diff-9c5fb3d1b7e3b0f54bc5c4182965c4fe1f9023d449017cece3005d3f90e8e4d8R89before this dependency was scoped as
provided
.It forces us to have the following configuration in our project:
Expected behavior
This module should
provided
dependencyThe text was updated successfully, but these errors were encountered: