This message was deleted.
# community-support
s
This message was deleted.
v
You don't say that updating Gradle changes the Kotlin version of you production project, do you? That is changes teh Kotlin version of build logic code could quite well be, as Gradle defines the Kotlin version that is used at runtime.
t
Exactly this happens, the kotlin-stdlib dependency is bumped to 1.8.10 as well. I wouldn’t have noticed that if not for the Compose compiler plugin that said that I’m using Kotlin 1.8.10, while I only whitelisted the usage of Kotlin 1.7.21 via the Kotlin compiler flag
plugin:androidx.compose.compiler.plugins.kotlin:suppressKotlinVersionCompatibilityCheck=1.7.21
I guess I’m doing something wrong because clearly this should not happen.
v
I would also say it shouldn't happen, but hard to say for me without hands-on.
t
Anything I could do to debug into this a little more?
v
Can you maybe look at a build scan, that could clear things more up than just
dependencies
and
dependencyInsight
. Actually debugging the dependency resolution is not the nicest experience as far as I remember.
From what I can see my
kotlin-bom:1.7.21
constraint pops up in
releaseCompileClasspath
, but also
kotlin-stdlib:1.8.10
which is there because “releaseRuntimeClasspath uses version 1.8.10”. And
releaseRuntimeClasspath
uses 1.8.10 because “Conflict resolution: between versions 1.8.10, 1.7.21, 1.7.10, 1.6.21 and 1.6.20"
v
Hm, so why do you have 1.8.10 in the release runtime classpath? Do you maybe there use
embeddedKotlinVersion
and thus get a different version by updating Gradle?
Or maybe the main problem is, that it's a DB project and thus is prone to be late and make problems. 😄 (Sorry, couldn't resist)
t
No, I don’t reference
embeddedKotlinVersion
anywhere myself.
Hehe, now I have a new DB joke even 🙂
v
But you do depend on
org.jetbrains.kotlin:kotlin-parcelize-runtime:1.8.10
and
org.jetbrains.kotlin:kotlin-stdlib:1.8.10
in
releasRuntimeClasspath
, right?
If not, or not aware, maybe that's where you should set a breakpoint, at where this is added to that configuration.