Remove redundant kotlin-stdlib dependencies

Proprietary

Remove explicit kotlin-stdlib, kotlin-stdlib-jdk7, kotlin-stdlib-jdk8, and kotlin-stdlib-common dependencies. The Kotlin Gradle plugin has automatically included the stdlib since Kotlin 1.4, making explicit declarations redundant.

org.openrewrite.kotlin.migrate.RemoveRedundantKotlinStdlib
mod run . --recipe=org.openrewrite.kotlin.migrate.RemoveRedundantKotlinStdlib

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. Remove a Gradle dependency org.jetbrains.kotlin:kotlin-stdlib
  2. Remove a Gradle dependency org.jetbrains.kotlin:kotlin-stdlib-jdk7
  3. Remove a Gradle dependency org.jetbrains.kotlin:kotlin-stdlib-jdk8
  4. Remove a Gradle dependency org.jetbrains.kotlin:kotlin-stdlib-common