-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Gradle dependencies declared in build.gradle as ‘checkstyle’ with a variable as the version are not identified #17657
Comments
if checkstyle version = I tried to add to: renovate/lib/modules/manager/gradle/parser.ts Line 431 in d9fd7db
this matcher:
it is not matching the checkstyle dependency template.
any suggestions on how we should handle such cases for example runtime variables like |
It would be problematic to do this with the current implementation, I think. Could be easier with our parsing library. |
Do we have an issue open for the refactor that would be required first? |
I don't think so |
I started working on this (in fact it only lacks the tests 😄) as there are other issues related to pmd, checkstyle, etc. as well, which could all be covered at once. Then I stumbled upon cases like this one and switched to refactoring the whole Gradle implementation. @zharinov may have noticed that something is going on based on my issues and PRs in https://github.com/zharinov/good-enough-parser 😀. I'm quite advanced with it already, including newly added support for |
Hi @Churro, can you please update the PR status ? |
PR in progress, incoming soon (targeting next weekend), no worries 😊 |
🎉 This issue has been resolved in version 34.54.0 🎉 The release is available on:
Your semantic-release bot 📦🚀 |
@Churro Thank you! |
How are you running Renovate?
Self-hosted
If you're self-hosting Renovate, tell us what version of Renovate you run.
32.192.2
If you're self-hosting Renovate, select which platform you are using.
github.com
If you're self-hosting Renovate, tell us what version of the platform you run.
No response
Was this something which used to work for you, and then stopped?
I never saw this working
Describe the bug
Gradle dependencies declared as checkstyle with the version as a variable under 'checkstyle' in the build.gradle, like the following, are not identified by Renovate:
When setting the version variable under 'ext' like the following, Renovate identifies the version:
Please find a minimal reproduction repo below with both dependencies. In the log, you can see that only one dependency is identified:
https://github.com/MaronHatoum/gradle-check-style-linux
Relevant debug logs
Logs
The text was updated successfully, but these errors were encountered: