Bump build Kotlin version to 2.4.0 - #3107
Conversation
|
@hfmehmed, this PR breaks all integration tests that use Kotlin Note that this PR bumps the version of Kotlin used to build KSP to |
|
Acceptable or not that's the policy Jetbrains have i think. The compile binary compatbility rule states that a kotlin compiler of version N can read metadata from compiled libraries up to version N+1. So compiler 2.2.x can ready metadata from 2.3.x at most. We should drop tests that use 2.2.x and lower in this case i guess. Checkout #3109 |
|
I see, thanks! This seems to be another breaking change for |
|
I think so, the symbol-processing-api jar is too coupled to the version of kotlin we compile things with so stdlib gets bundled in the final JAR which essentially forces anyone using 2.2.x to stick with current version of KSP. Now that KSP releases are uncoupled from Kotlin we have the problem to keep some support levels (e.g promises to support Kotlin releases at least 1 year old and maybe at most 1.5 years old?). Or we need to find some smart way to be able to compile KSP with newer Kotlin version but still allow users to use old KGP/Kotlin versions but i guess that could lead to tricky classloader situations |
Closes #2965