Skip to content

fix(cli): run gradle wrapper before root build.gradle migration - #8579

Open
jcesarmobile wants to merge 1 commit into
nextfrom
wrapper-first
Open

fix(cli): run gradle wrapper before root build.gradle migration#8579
jcesarmobile wants to merge 1 commit into
nextfrom
wrapper-first

Conversation

@jcesarmobile

@jcesarmobile jcesarmobile commented Aug 25, 2026

Copy link
Copy Markdown
Member

In #8543 the order of updating files was changed to edit settings.gradle and app/build.gradle before updating gradle files as it could cause issues, but the root build.gradle was also moved to run before updating the wrapper files.
The wrapper files need to be updated before updating the root build.gradle as if the AGP version is not compatible with current gradle it will fail to update the wrapper files, it doesn't happen with current versions, but could break in the future, in example if we update to AGP 9.4.0.

Added a comment as it's not the first time the wrapper files update was moved after the root build.gradle update and broke in a following update.

@OS-pedrogustavobilro OS-pedrogustavobilro left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Well caught.

I had looked through the commit history before to try and understand if there was a reasoning for that particular order, but could not find it.

The comment is a good add too, should prevent further blunders 😅

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants