Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support string literal dependency notation for add calls #85

Open
madisp opened this issue Dec 3, 2023 · 2 comments
Open

Support string literal dependency notation for add calls #85

madisp opened this issue Dec 3, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@madisp
Copy link

madisp commented Dec 3, 2023

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}
@autonomousapps
Copy link
Collaborator

Thanks for the issue.

@autonomousapps autonomousapps added the enhancement New feature or request label Dec 3, 2023
@madisp
Copy link
Author

madisp commented Dec 4, 2023

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

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants