kordlib / kord

Idiomatic Kotlin Wrapper for The Discord API
MIT License
909 stars 80 forks source link

Update Kotlin to 2.0.20 #975

Closed lukellmann closed 2 weeks ago

lukellmann commented 2 weeks ago

Context receivers will be replaced by https://github.com/Kotlin/KEEP/issues/367 and are deprecated for now, so the CONTEXT_RECEIVERS_DEPRECATED warning must be suppressed in the ksp-processors project.

The changes in the KLib ABI dumps are due to https://github.com/JetBrains/kotlin/commit/56ba701b3d05738d70a4f906859bbb066c9531a0, constructors of sealed classes aren't public ABI.

lukellmann commented 2 weeks ago

please merge with this commit message:

Update Kotlin to 2.0.20 (#975)

Context receivers will be replaced by [1] and are deprecated for now,
so the CONTEXT_RECEIVERS_DEPRECATED warning must be suppressed in the
ksp-processors project.

The changes in the KLib ABI dumps are due to [2], constructors of sealed
classes aren't public ABI.

[1] https://github.com/Kotlin/KEEP/issues/367
[2] https://github.com/JetBrains/kotlin/commit/56ba701b3d05738d70a4f906859bbb066c9531a0
DRSchlaubi commented 2 weeks ago

Wasn't there a way to suppress warnings via cli now? If so wouldn't it be smart to use that for the ksp-processor project?

lukellmann commented 2 weeks ago

Wasn't there a way to suppress warnings via cli now? If so wouldn't it be smart to use that for the ksp-processor project?

not in 2.0.20, it will be available in 2.1.0: https://github.com/kordlib/kord/commit/ee94ad365266e95c2a263c0e96dbfe31a4d901d2 https://youtrack.jetbrains.com/issue/KT-8087