-
Notifications
You must be signed in to change notification settings - Fork 1k
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 for Kotlin DSL Gradle projects dynamically defining dependencies in separate files #2280
Comments
Any updates? |
Should be fixed with #2680 |
@busches Is it really working? Because it's not working for my project |
@PatilShreyas do you have a link to the repo or job ID that's failing that we could look into? |
@jurre I've repo open-source: https://github.com/PatilShreyas/Foodium/ It's not failing here. But it's not raising PR for updates. For e.g. see this Logs
|
It worked nicely for a private project of mine, even with version variables. Thanks a lot for implementing! |
@PatilShreyas Were you able to make it work, I am having the same issue. |
@savvisingh |
We have a multi-module project so moving the dependencies from common file to each gradle file won't be a good idea and can introduce diff dependencies in diff modules, Let's see if dependabot team can come up with a better solution. |
It's not working yet. Still looking for possible solutions. |
Would the central dependency catalog as of Gradle 7.x help? See https://docs.gradle.org/7.0-rc-1/release-notes.html#centralized-versions |
Regarding my last comment: See #3471 |
I think the title here is misleading, this isn't an issue with Kotlin buildscripts (I've got many projects with Kotlin buildscripts for which Dependabot is working), but rather not having the dependency version directly in the dependency declaration string. |
I totally agree with @dinomite |
@dinomite @mustafaozhan Thanks for the heads up. I'm not super familiar with Kotlin/Gradle, so can one of you suggest what would be an appropriate issue title that would capture what's actually missing here? |
In the sample project given, Dependencies are dynamically defined in Kotlin in a separate file: https://github.com/PatilShreyas/Foodium/blob/04dc75b7a0d22a07accc718d040d3b252b4727ef/buildSrc/src/main/kotlin/Dependencies.kt While we do support version variables but we don't support that. And it'd be hard to do with the current approach. I guess it'd be better if we could shell out to I'm going to adapt the title to try capture this and make it less misleading. |
Currently, Dependabot supports pure Gradle projects. But it doesn't work for Kotlin DSL Gradle projects.
For e.g. here is my Android Gradle project with Kotlin DSL and it's failing there. It would be great if Dependabot would support
build.gradle.kts
projects too.The text was updated successfully, but these errors were encountered: