Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Commit 1471967

Browse files
authored
Update gradle to 7.5.1 (#45113)
fixes flutter/flutter#133259 Added gradle update instructions and bumped gradle version.
1 parent 3c1143f commit 1471967

File tree

2 files changed

+29
-1
lines changed

2 files changed

+29
-1
lines changed

DEPS

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -684,7 +684,9 @@ deps = {
684684
'src/third_party/gradle': {
685685
'packages': [
686686
{
687-
'version': 'version:7.0.2',
687+
# See tools/gradle/README.md for update instructions.
688+
# Version here means the CIPD tag.
689+
'version': 'version:7.5.1',
688690
'package': 'flutter/gradle'
689691
}
690692
],

tools/gradle/README.md

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Updating gradle version used in engine repo
2+
3+
The instructions in this README explain how to create a CIPD package that
4+
contains the gradle build-time dependency of the Android embedding of the Engine.
5+
The Android embedder is shipped to Flutter end-users, but gradle is not.
6+
7+
## Requirements
8+
9+
1. If you have a flutter/engine checkout, then you should already have
10+
[Depot tools](http://commondatastorage.googleapis.com/chrome-infra-docs/flat/depot_tools/docs/html/depot_tools_tutorial.html#_setting_up) on your path.
11+
1. Ensure you have write access for cipd. go/flutter-luci-cipd
12+
1. Download the new version of gradle then verify the checksum,
13+
and unzip into a local directory.
14+
15+
## Update CIPD Steps
16+
These steps use gradle version 7.5.1 as an example.
17+
18+
1. Unzip gradle into a folder `unzip gradle-7.5.1-all.zip`
19+
1. Authenticate with cipd `cipd auth-login`
20+
1. Run `cipd create -in gradle-7.5.1 -install-mode copy -tag version:7.5.1 -name flutter/gradle`
21+
1. Update `engine/src/flutter/DEPS` gradle entry to contain the tag from the command above.
22+
1. Run `gclient sync` to verify that dependency can be fetched.
23+
24+
## Useful links
25+
* CIPD gradle https://chrome-infra-packages.appspot.com/p/flutter/gradle/+/
26+
* Gradle Releases https://gradle.org/releases/

0 commit comments

Comments
 (0)