Hi (Kotlin 2.0 migration problem)
I am trying to migrate our project to Kotlin 2.0 and one of the problems i encounter relate to dependencies in gradle
Let me try to explain the scenario
We have a library L1 which exposes a class C1
A library L2 which implements a class C2 which subclass C1. hence there is a dependency in the build.gradle.kts of L2 which includes implementation(L1)
So far so good 🙂
Now we have L3 which uses class C2 hence includes implementation(L2) in build.gradle.kts
Until kotlin 2.0 this worked but in kotlin 2.0 we get a compilation error unless we also add implementation(L1) to L3
It seems like the new compiler needs to reference C1 while the previous one didnt