square / gradle-dependencies-sorter

A CLI app and Gradle plugin to sort the dependencies in your Gradle build scripts
Apache License 2.0
252 stars 11 forks source link

Feature request: support kotlin DSL stringy configuration syntax #23

Open ZacSweers opened 1 year ago

ZacSweers commented 1 year ago

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)
}
autonomousapps commented 1 year ago

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

madisp commented 9 months ago

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

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