Skip to content

[Health] Prevent setup-gradle from updating to beyond version 5#351

Open
adi-gnm wants to merge 2 commits intomainfrom
ab/health/stop-setup-gradle-updates
Open

[Health] Prevent setup-gradle from updating to beyond version 5#351
adi-gnm wants to merge 2 commits intomainfrom
ab/health/stop-setup-gradle-updates

Conversation

@adi-gnm
Copy link
Member

@adi-gnm adi-gnm commented Mar 24, 2026

Description

What

Sets the max version for setup-gradle action to be v5 by preventing updates to v6 & above.

Why

See chat thread for more details: https://chat.google.com/room/AAAADLv-zSQ/uEWEF8xxk0Y/uEWEF8xxk0Y?cls=10

Gradle announced1 some changes to the action:

  1. They are moving the caching functionality to a separate closed source action. It will still be available as part of the main action for now.
  2. They are also changing the license on the cache action from MIT to their proprietary license. Updating to setup-gradle v6 will automatically mean accepting those license terms.
  3. They are removing configuration caching support from the caching action

Their post (and messaging in some private chats) has indicated that they do not expect caching support to stay free forever except for open source repos. Their recommendation is to pay for Develocity and use their Universal Cache product2.

@adi-gnm adi-gnm added Android Android specific PRs maintenance Departmental tracking: maintenance work, not a fix or a feature labels Mar 24, 2026
@adi-gnm adi-gnm marked this pull request as ready for review March 24, 2026 18:07
Copilot AI review requested due to automatic review settings March 24, 2026 18:07
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Caps Dependabot GitHub Actions updates so the Gradle setup-gradle action won’t be bumped to v6+ (to avoid the licensing/caching changes introduced in v6).

Changes:

  • Add Dependabot ignore rules to prevent updates to gradle/actions/setup-gradle v6+.
  • (Formatting) Align the open-pull-requests-limit line indentation in the github-actions update block.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

open-pull-requests-limit: 1 No newline at end of file
open-pull-requests-limit: 1
ignore:
- dependency-name: "gradle/actions/setup-gradle"
Copy link

Copilot AI Mar 24, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are trailing spaces after the dependency name. This can create noisy diffs and can break some YAML linters—please remove the extra whitespace at the end of the line.

Suggested change
- dependency-name: "gradle/actions/setup-gradle"
- dependency-name: "gradle/actions/setup-gradle"

Copilot uses AI. Check for mistakes.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android Android specific PRs maintenance Departmental tracking: maintenance work, not a fix or a feature

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants