Renovate: Renovate only updates one configuration of a repeated dependency in Gradle

Created on 2 Dec 2019  路  5Comments  路  Source: renovatebot/renovate

What Renovate type are you using?

Self-hosted

Describe the bug

One of my gradle builds looks like this:

        implementation platform("org.immutables:value:2.8.1")
        annotationProcessor platform("org.immutables:value:2.8.1")
        testAnnotationProcessor platform("org.immutables:value:2.8.1")

This is a bit silly, but Gradle sorta forces me to do this (I could use a property to set the version, but I'd rather avoid using properties if possible)

Renovate creates a PR for this, but only changes the _first_ of these 3 dependency declarations. The resulting PR looks like this:

-        implementation platform("org.immutables:value:2.8.1")
+        implementation platform("org.immutables:value:2.8.2")
         annotationProcessor platform("org.immutables:value:2.8.1")
         testAnnotationProcessor platform("org.immutables:value:2.8.1")

Did you see anything helpful in debug logs?

Nothing in logs that I could see - if I manage to run locally, i'll turn debug on (we currently run renovate over a lot of repos, so debug logs would be ... noisy)

To Reproduce

Add the above to any gradle build in the dependencies sections

Additional context

gradle priority-3-normal bug

All 5 comments

@gjoseph can you create a simple repository on github.com to reproduce this? i.e. something that a developer can first reproduce against and then fix against

Cc @ikesyo

@rarkins @ikesyo here you go: https://github.com/gjoseph/renovate-bugs-gradle

Just confirming that particular repo demonstrates the issue:
Screen Shot 2019-12-12 at 17 51 12

Thanks, we鈥檒l fork and then try to see how complicated the fix is

I (think I) just gave you direct access to the repo if you'd like

Was this page helpful?
0 / 5 - 0 ratings