Replace deprecated kotlinx methods

Proprietary

Replace deprecated Kotlin extension library method calls with their recommended replacements, based on @Deprecated(replaceWith=ReplaceWith(...)) annotations.

org.openrewrite.kotlin.kotlinx.ReplaceDeprecatedKotlinxMethods
mod run . --recipe=org.openrewrite.kotlin.kotlinx.ReplaceDeprecatedKotlinxMethods

Install it once from Recipe actions, then run it on every repository under the current directory. New to the Moderne CLI? Set it up.

Recipe list

It runs these recipes, in this order.

  1. Replace deprecated kotlinx-collections-immutable methods
  2. Upgrade to kotlinx-coroutines 1.10
  3. Migrate to kotlinx-datetime 0.7
  4. Replace deprecated kotlinx-io-core methods
  5. Upgrade to kotlinx-serialization 1.8