Hi (Kotlin 2.0 migration problem) I am trying to m...
# k2-adopters
l
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
m
Yes, 2.0 is more restrictive in terms of dependencies accessibility, it's as designed
l
where is it described ? (the design) I want to understand the mechanism
l
thanks for the help and the quick reply @mglukhikh
kodee welcoming 1