Skip to content

Add support for updating gradle wrapper #2223

Description

@rahulsom

Hi!

This is an amazing way to manage dependencies.

It would be awesome if it could also send PRs for gradle wrapper updates.
Typically this involves

  1. Find the latest version of gradle published at
https://api.github.com/repos/gradle/gradle/releases/latest
  1. Run
./gradlew wrapper --gradle-version ${VERSION} --distribution-type all
  1. Send a PR.

Some projects using maven also use a wrapper - https://github.com/takari/maven-wrapper but that can be a separate issue.

Activity

  1. greysteil commented on Oct 31, 2018

    @greysteil
    Contributor

    Thanks for the kind words @rahulsom!

    Looking through these docs it does look like it would be pretty straightforward for Dependabot to update Gradle wrapper versions. I'm not going to add it straight away (I'm swamped with a few other updates) but I'll leave this open and come back to it.

  2. klara-l commented on Nov 11, 2018

    @klara-l

    This would be awesome!

  3. rahulsom commented on Jul 26, 2019

    @rahulsom
    Author

    Hi @greysteil! Any chance to prioritize this?

  4. greysteil commented on Jul 26, 2019

    @greysteil
    Contributor

    At the moment I'm afraid we have more than we can handle just integrating with GitHub. We'd love to get to this, but unless it's an open source contribution it's going to take some time.

  5. robstoll commented on Dec 6, 2019

    @robstoll

    @greysteil do you have pointers where and how it needs to be implemented? I could take a look into it.

  6. robstoll commented on Feb 4, 2020

    @robstoll

    @feelepxyz maybe you have some pointers?

  7. added
    T: new-ecosystemRequests for new ecosystems/languages
    F: language-supportIssues specific to a particular language or ecosystem; may be paired with an L: label.
    on Jul 2, 2020
  8. FireMasterK commented on Oct 2, 2020

    @FireMasterK

    Any progress on this?

  9. robstoll commented on Oct 18, 2020

    @robstoll

    @infin8x do you have some pointers where this needs to be implemented, I would still take a look

  10. infin8x commented on Oct 19, 2020

    @infin8x
    Contributor

    @robstoll I don't at the moment, sorry. We're a bit swamped at the moment and can't commit to giving your PR the requisite attention.

  11. robstoll commented on Oct 19, 2020

    @robstoll

    @infin8x I don't need a commitment, just a pointer where I should start looking. There is a lot of code and I don't have time either, so if I spend time helping you out then I want to do it as efficiently as possible. I think it would be enough, if you can point me to the file where the analysis for updates takes place. Thanks in advance

  12. 57 remaining items

  13. yeikel commented on Jan 30, 2026

    @yeikel
    Contributor

    @kbukum1 What about GitHub Enterprise Cloud with data residency, do you still need some flags or a new release? The dependabot run uses the latest ghcr.io/dependabot/dependabot-updater-gradle image but it does not create a Gradle wrapper PR.

    Let's wait on @kbukum1 / team. But we can probably tell from the logs in the meantime. What is the digest of ghcr.io/dependabot/dependabot-updater-gradle that is running in your environment?

    Also, for the flag, do you see the flag on in your logs? When the job runs, you should see "gradle-wrapper-updater":true under Job definition:

    The feature is behind gradle_wrapper_updater feature flag. Probably it has to be enabled for you as well.

    This seems to be enabled globally right now(if you create a new repo, it is ON) but it is possible that rollout in enterprise/other environments may be different. I believe that we may be able to send a change to remove the flag altogether at some point

  14. hfhbd commented on Jan 30, 2026

    @hfhbd
    Contributor

    @yeikel

    What is the digest of ghcr.io/dependabot/dependabot-updater-gradle that is running in your environment?

    Like I said, the latest one (at the time): 1dd17b7c49d7d8a1e1b3563fb8a96320223feb1b

    you should see "gradle-wrapper-updater":true under Job definition:

    Nope, that property is not part of the job definition.

  15. yeikel commented on Jan 30, 2026

    @yeikel
    Contributor

    @yeikel

    What is the digest of ghcr.io/dependabot/dependabot-updater-gradle that is running in your environment?

    Like I said, the latest one (at the time): 1dd17b7c49d7d8a1e1b3563fb8a96320223feb1b

    I am sorry, I missed that in the discussion. That looks like a tag tough, not a digest (or at least, it does not resolve from my side)

    That tag is currently pointing to v0.359.0 which is the latest and includes the changes.

    Nope, that property is not part of the job definition.

    Then, that explains it. Although it is currently in "global rollout" it still needs the flag. it may be different for that environment where you run and we need to wait for the Dependabot's team to confirm why is not enabled there yet

  16. moved this from On Hold to In Progress in Dependaboton Feb 4, 2026
  17. v-kbukum1 commented on Feb 4, 2026

    @v-kbukum1
    Contributor

    @kbukum1 What about GitHub Enterprise Cloud with data residency, do you still need some flags or a new release? The dependabot run uses the latest ghcr.io/dependabot/dependabot-updater-gradle image but it does not create a Gradle wrapper PR.

    For this currently it is behind feature flag. We need to make a plan to cleanup the feature flag and backport for Github Enterprise. I will let you know when we are doing that.

    CC: @honeyankit

  18. moved this from In Progress to On Hold in Dependaboton Feb 4, 2026
  19. yeikel commented on Feb 4, 2026

    @yeikel
    Contributor

    For full Github Enterprise support we may also need #13539

  20. lnhrdt commented on Feb 4, 2026

    @lnhrdt

    @yeikel thanks for the updates! Regarding the GHES roadmap, is this feature slated for the next minor release? While #13539 would be a great addition, our teams on GHES are primarily using public registries and would benefit from the wrapper updates even before that enhancement is finalized.

  21. yeikel commented on Feb 4, 2026

    @yeikel
    Contributor

    our teams on GHES are primarily using public registries

    Thanks for the insights, if that's the current use base maybe it'll be fine to start without this.

    I was coming from my own anecdotal experience. In our case, public access is a non-starter since we mirror all repositories, and I’d guess other orgs may have similar constraints. That said, we’re not officially using Dependabot yet(we use core) so maybe that's why we don't matter yet.

    cc @marcindabrowski Could you share your thoughts here? Based on your recent activity, it looks like you might have more accurate context and/or a need for private registry support.

  22. v-kbukum1 commented on Feb 13, 2026

    @v-kbukum1
    Contributor

    For GHES/Enterprise versions we are now working on plan to make the feature available. We will let you know when it is ready and for which GHES release it will be available.

  23. moved this from On Hold to In Progress in Dependaboton Feb 13, 2026
  24. joffrey-bion commented on Feb 13, 2026

    @joffrey-bion

    Thanks a lot for this long-awaited feature!

    I just wish this was a separate ecosystem so I can put different labels for the wrapper update PRs. These are not the same kinds of updates (dependencies VS tooling).

    I guess there might be a workaround by declaring the gradle ecosystem twice and ignoring gradle-wrapper on one side, and allowing only gradle-wrapper on the other side, but that's pretty tedious.

  25. yeikel commented on Feb 13, 2026

    @yeikel
    Contributor

    Thanks a lot for this long-awaited feature!

    I just wish this was a separate ecosystem so I can put different labels for the wrapper update PRs. These are not the same kinds of updates (dependencies VS tooling).

    I guess there might be a workaround by declaring the gradle ecosystem twice and ignoring gradle-wrapper on one side, and allowing only gradle-wrapper on the other side, but that's pretty tedious.

    This is what I'd do

    • Listen on pull requests from dependabot[bot]
    • If the title contains gradle-wrapper -> Add additional tags

    This would not work for grouped updates but based on your description, it seems that you'd be treating it separately

    The other alternative you have is to look at the updated files. All the gradle wrapper updates touch the same files

  26. moved this from In Progress to Done in Dependaboton Feb 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

F: language-supportIssues specific to a particular language or ecosystem; may be paired with an L: label.KeepExempt this from being marked by stalebotL: java:gradleMaven packages via GradleT: feature-requestRequests for new featuresT: new-ecosystemRequests for new ecosystems/languages

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions