Hi, is it currently impossible to use exposed with...
# exposed
r
Hi, is it currently impossible to use exposed with kotlinx datetime 0.7.2? Getting a
Copy code
java.lang.NoSuchMethodError: 'kotlinx.datetime.Instant kotlinx.datetime.ConvertersKt.toKotlinInstant(java.time.Instant)'
j
Currently, Exposed uses 0.6.2 of kotlinx.datetime. There is another dependency in your project which uses a more recent version of kotlix.datetime. I am in the exact same situation but I think I came across a PR that uses the newer kotlinx datetime 0.7.1 and it is already on main.
thank you color 1
Which leaves the question, when is the next exposed beta coming out which includes this PR (https://github.com/JetBrains/Exposed/pull/2557)?
2
j
You can use it with kotlinx-datetime
0.7.1-0.6.x-compat
you'll have to convert to deprecated and back instants before writing/reading to the DB though. https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant
thank you color 1
You will run into fun situations if one of your libs bumps to like a new version (say 0.7.2) and that then replaces the compat version on your classpath... This has bit me already.