Commit 32ab72e
committed
ci: cap Gradle below 9.6, which no AGP 8.x can build with
Dependabot proposed Gradle 9.7.1 (#13) and it broke the Android build:
Plugin 'com.android.internal.application' relies on
'org.gradle.api.problems.internal.InternalProblems', a Gradle internal
API that was removed in Gradle 9.6.0. ... or use Gradle 9.5.
Gradle 9.6.0 dropped an internal API that every AGP 8.x depends on. AGP is
deliberately held at 8.x here because AGP 9 is not Flutter-ready, so the two
are coupled: Gradle cannot move past 9.5 until that migration happens.
The previous rule only ignored Gradle *majors*, so 9.6+ sailed through as a
minor. Nothing would have stopped it: ci.yml runs format, analyze and test,
none of which invoke Gradle, so #13's `validate` check passed green while the
app could not build at all. Caught by building locally rather than trusting
the check.
Verified by isolation — Gradle 9.7.1 + AGP 8.13.2 fails; Gradle 9.3.1 with
the same AGP 8.13.2 and protobuf 4.36.1 builds. Lift this cap together with
the AGP 9 move.1 parent 84c4bba commit 32ab72e
1 file changed
Lines changed: 18 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
21 | | - | |
22 | | - | |
| 21 | + | |
| 22 | + | |
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
28 | 43 | | |
29 | 44 | | |
30 | 45 | | |
| |||
35 | 50 | | |
36 | 51 | | |
37 | 52 | | |
38 | | - | |
| 53 | + | |
39 | 54 | | |
40 | 55 | | |
41 | 56 | | |
| |||
0 commit comments