-
Notifications
You must be signed in to change notification settings - Fork 24.4k
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
Update Gradle Wrapper to 6.6 #29613
Update Gradle Wrapper to 6.6 #29613
Conversation
Base commit: eecb930 |
Base commit: eecb930 |
CC @kgozali |
we upgraded to 6.5 not too long ago, any specific benefit for this upgrade to 6.6? |
@friederbluemle @dulmandakh, thoughts on my question?
|
@fkgozali - Thanks for the review/question. There's no "specific benefit" for this update (i.e. it does not fix any major/blocking issue). However, the same question can be asked for the previous update to Gradle 6.6 comes with some potential performance improvements (hard to measure those, and maybe negligible/non-existent in the React Native repo). Perhaps more importantly, Gradle 6.6 fixes a whitespace error in the All that said, if it was me, we should simply keep the version of the Gradle Wrapper aligned with the version of the Android Gradle plugin (update less often), unless there are specific reasons for a newer, out-of-sync version. Thoughts? |
bc7e108
to
944633d
Compare
Rebased onto latest master branch. |
OK. The reason I asked is that, each upgrade is not as simple as just landing this PR. We have a bunch of offline caching in our internal CI that needs to be updated, and a bunch of other scripts as well. I wasn't involved in the upgrades pre-6.5 so I wasn't sure what the thoughts back then was, but moving forward we do want to be intentional when upgrading the build system, not just because it's the latest and the greatest. That said, we may just take in this 6.6 soon (maybe in a week or so). Though further upgrades should probably be discussed briefly in the future. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@fkgozali has imported this pull request. If you are a Facebook employee, you can view this diff on Phabricator.
@fkgozali - Sounds good, and makes sense! Thanks for the additional explanation 👍 Like I said, in the future we could also consider simply keeping the version of Gradle Wrapper aligned with the default version used by the Android Gradle plugin, unless there is a specific reason to upgrade. |
Summary: Gradle Wrapper to 6.6 https://docs.gradle.org/6.6/release-notes.html ## Changelog [Android] [Changed] - Update Gradle Wrapper to 6.6 Pull Request resolved: #29613 Test Plan: Build project Reviewed By: mdvacca Differential Revision: D23197319 Pulled By: mdvacca fbshipit-source-id: 97ac5a9799435e5d117fe72d924698a169a64efb
This pull request was successfully merged by @friederbluemle in 5bc67b6. When will my fix make it into a release? | Upcoming Releases |
I'm not too sure, I think I needed to run gradlew wrapper (to upgrade other scripts) and it might have produced the change. Regardless, it seems reasonable to use -bin (for less build-time download)? I noticed some gradlew used -all, some used -bin. |
According to https://docs.gradle.org/current/userguide/gradle_wrapper.html:
So it seems ok to rely on -bin? |
Ooh, okay, so I guess you ran |
I see, I'll merge that tomorrow/early next week
On Aug 27, 2020, at 5:04 PM, Frieder Bluemle <notifications@github.com> wrote:
Ooh, okay, so I guess you ran ./gradlew wrapper without the --distribution-type all flag. It also happened to me before, which is why I defined an alias in my shell to make this easier to update Gradle Wrapper across many repositories that involve Android.
-all is actually the default as generated by Android Studio, and it also provides additional sources helpful for debugging. It's also much more likely to already exist on a developer's machine (which has built other Android projects), avoiding additional downloads and saving disk space. Therefore, the -all variant is preferred.
I opened a PR here: #29793<#29793>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#29613 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AAILROTLKVFIEYQ3CGYSZLDSC3YBTANCNFSM4P2VKDKA>.
|
Sounds good, thanks for the fast replies @fkgozali 👍 |
Summary: `-all` is the **default** for projects generated by Android Studio, and it provides **additional sources** helpful for debugging. It's also much more likely to already exist on a developer's machine (which has built other Android projects), avoiding additional downloads and saving disk space. `-all` has also been the variant used in `react-native` for all versions prior to 5bc67b6. Follow-up to facebook/react-native#29613 ## Changelog [Android] [Changed] - Use Gradle Wrapper 6.6 (-all variant) Pull Request resolved: facebook/react-native#29793 Test Plan: No test needed since versions are the same. Reviewed By: fkgozali Differential Revision: D23406546 Pulled By: mdvacca fbshipit-source-id: b74dbbfc0317bccf1940b1e5062d866e50aed28a
Summary: `-all` is the **default** for projects generated by Android Studio, and it provides **additional sources** helpful for debugging. It's also much more likely to already exist on a developer's machine (which has built other Android projects), avoiding additional downloads and saving disk space. `-all` has also been the variant used in `react-native` for all versions prior to 5bc67b6. Follow-up to #29613 ## Changelog [Android] [Changed] - Use Gradle Wrapper 6.6 (-all variant) Pull Request resolved: #29793 Test Plan: No test needed since versions are the same. Reviewed By: fkgozali Differential Revision: D23406546 Pulled By: mdvacca fbshipit-source-id: b74dbbfc0317bccf1940b1e5062d866e50aed28a
When my clone of react-native includes this PR, I have a persistent line ending issue with one of the gradlew.bat files, it's resistant to all my attempts to fix so far, on ubuntu 20
|
Hi @mikehardy - Yeah, unfortunately that is a problem for me as well (I'm surprised not more people have pointed this out).. I've already opened a PR with a brief description more than a week ago: #29792 |
Summary: Gradle Wrapper to 6.6 https://docs.gradle.org/6.6/release-notes.html ## Changelog [Android] [Changed] - Update Gradle Wrapper to 6.6 Pull Request resolved: facebook#29613 Test Plan: Build project Reviewed By: mdvacca Differential Revision: D23197319 Pulled By: mdvacca fbshipit-source-id: 97ac5a9799435e5d117fe72d924698a169a64efb
Summary: `-all` is the **default** for projects generated by Android Studio, and it provides **additional sources** helpful for debugging. It's also much more likely to already exist on a developer's machine (which has built other Android projects), avoiding additional downloads and saving disk space. `-all` has also been the variant used in `react-native` for all versions prior to 5bc67b6. Follow-up to facebook#29613 ## Changelog [Android] [Changed] - Use Gradle Wrapper 6.6 (-all variant) Pull Request resolved: facebook#29793 Test Plan: No test needed since versions are the same. Reviewed By: fkgozali Differential Revision: D23406546 Pulled By: mdvacca fbshipit-source-id: b74dbbfc0317bccf1940b1e5062d866e50aed28a
Summary
Gradle Wrapper to 6.6
https://docs.gradle.org/6.6/release-notes.html
Changelog
[Android] [Changed] - Update Gradle Wrapper to 6.6
Test Plan
Build project
Closes #28914