-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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 variable ordering breaks detected dependencies #18317
Comments
Hi there, Get your issue fixed faster by creating a minimal reproduction. This means a repository dedicated to reproducing this issue with the minimal dependencies and config possible. Before we start working on your issue we need to know exactly what's causing the current behavior. A minimal reproduction helps us with this. To get started, please read our guide on creating a minimal reproduction. We may close the issue if you, or someone else, haven't created a minimal reproduction within two weeks. If you need more time, or are stuck, please ask for help or more time in a comment. Good luck, The Renovate team |
Looks to me like a real issue in the current Gradle parser. The whole problem can be narrowed down to: apacheCommonsLangVersion = "${apacheVersion}"
openApiVersion = '1.5.13'
implementation("org.springdoc:springdoc-openapi-ui:${openApiVersion}") What happens:
One possible solution for this is to make |
Thanks for the in depth analysis. I did think it would be something to this end as it only happened when a more "complex" case came first in the file. Great to see a PR so quickly for the fix |
How are you running Renovate?
Mend Renovate hosted app on github.com
If you're self-hosting Renovate, tell us what version of Renovate you run.
No response
If you're self-hosting Renovate, select which platform you are using.
No response
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
We have a multi-project gradle build system where the versions are defined in the root level project. Apparently the detection of dependencies and their updates depends on their ordering.
For example the following excerpt out of the root-level
build.gradle
works and resulted in a PR and branch being created for the openApi package:Merely changing the order of the last two items (to better match our internal layout) resulted in the branch being deleted and the PR closed.
Reproduction Repository: https://github.com/siegenthalerroger/renovate-gradle-variable-interpolate-reproduction
Change commit: siegenthalerroger/renovate-gradle-variable-interpolate-reproduction@edadcea
Relevant debug logs
Logs
Have you created a minimal reproduction repository?
I have linked to a minimal reproduction repository in the bug description
The text was updated successfully, but these errors were encountered: