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

Support string literal dependency notation for add calls

Open madisp opened this issue 1 year ago • 2 comments
trafficstars

This currently fails with parsing:

dependencies {
  add("myconfig", "com.example:foo:1.2.3")
}

parse error:

1: extraneous input '"' expecting {'file(', 'files(', 'project', ID}, 2: extraneous input '"' expecting {'}', ID}

madisp avatar Dec 03 '23 21:12 madisp

Thanks for the issue.

autonomousapps avatar Dec 03 '23 21:12 autonomousapps

NOTE: as a workaround, version catalog references are ok, e.g. this will work:

dependencies {
  add("myconfig", libs.foo)
}

madisp avatar Dec 04 '23 06:12 madisp