gradle-dependencies-sorter icon indicating copy to clipboard operation
gradle-dependencies-sorter copied to clipboard

Feature request: support kotlin DSL stringy configuration syntax

Open ZacSweers opened this issue 2 years ago • 2 comments

Kotlin DSL allows you to invoke via strings like this. It's a terrible API, but it's legal none-the-less

dependencies {
  "implementation"(libs.moshi)
}

ZacSweers avatar Feb 07 '23 04:02 ZacSweers

Thanks for the issue. I agree this is a valid use-case.

autonomousapps avatar Jul 17 '23 04:07 autonomousapps

just noting there's a workaround for .kts by using add:

dependencies {
  // instead of this...
  "config"(dependency)
  // ...do this
  add("config", dependency)
}

madisp avatar Dec 04 '23 06:12 madisp