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

Feature request: support kotlin DSL stringy configuration syntax #23

Open
ZacSweers opened this issue Feb 7, 2023 · 2 comments
Open
Labels
enhancement New feature or request

Comments

@ZacSweers
Copy link
Collaborator

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
Copy link
Collaborator

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

@autonomousapps autonomousapps added the bug Something isn't working label Jul 17, 2023
@autonomousapps autonomousapps added enhancement New feature or request and removed bug Something isn't working labels Dec 3, 2023
@madisp
Copy link

madisp commented Dec 4, 2023

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

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

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

3 participants