Update dependencies and start using Kotlin stdlib's Instant #162
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Kotlinx datetime has removed the
ClockandInstantclasses since version 0.7.0 as they have been moved into the Kotlin standard library (see https://github.com/Kotlin/kotlinx-datetime?tab=readme-ov-file#deprecation-of-instant).This commit updates various dependencies in order to be able to use the new version of Kotlinx datetime and start using those classes from stdlib.
Major dependency upgrades:
kotlinx-datetime: updated to latest 0.7.1kotlinx-serialization: needed as the latest version (1.9.0) contains serializers for the new stdlibInstantkotlin: updated to 2.2.10 because the latest version of the serialization library requires Kotlin 2.2Given that the new
InstantandClockclasses require an experimental opt-in to be used, I've added it project-wide in the compiler options.Given I was updating dependencies, I've also taken the liberty to update other stuff like Dokka, Coroutines, Ktor and JUnit.
Note: this is a breaking change but will allow consumers of this library to update
kotlinx-datetime.