Update Gradle to version 7.6.1 and Android Gradle Plugin to 7.4.1
Categories
(Fenix :: General, task, P2)
Tracking
(firefox110 wontfix, firefox111 wontfix, firefox112 fixed, firefox116 fixed)
People
(Reporter: RyanVM, Assigned: mcarare)
References
Details
(Whiteboard: [geckoview:m112])
Attachments
(2 files, 2 obsolete files)
Release notes:
https://docs.gradle.org/7.6/release-notes.html
Reporter | ||
Comment 1•2 years ago
|
||
This appears to work fine with Fenix/Focus/r-b, but on AC we're hitting bustage with the refactored Dependencies plugin:
FAILURE: Build failed with an exception.
* Where:
Build file '/builds/worker/checkouts/vcs/android-components/build.gradle' line: 31
* What went wrong:
A problem occurred evaluating root project 'android-components'.
> No such property: tools_androidgradle for class: org.gradle.api.artifacts.dsl.Dependencies
From the upgrade guide, it's not entirely clear to me offhand what the breaking change is.
Reporter | ||
Comment 2•2 years ago
|
||
Gabriel, any ideas about what to do regarding the bustage noted in comment 1? Presumably that'll be an issue for Fenix/Focus eventually as well.
Reporter | ||
Comment 4•2 years ago
•
|
||
I hadn't created the PR yet, but the branch exists:
https://github.com/mozilla-mobile/firefox-android/commit/1dcb8fb572c8c8a94bd78cde17239e7822627662
It does reproduce locally as well.
Reporter | ||
Comment 5•2 years ago
|
||
Comment 6•2 years ago
|
||
Reporter | ||
Comment 7•2 years ago
|
||
I've gone ahead and created the firefox-android PR so the logs are easier to find.
https://firefox-ci-tc.services.mozilla.com/tasks/bDFrM1T-Tg2w-ZgY0ezVHA/runs/5/logs/public/logs/live.log
FAILURE: Build failed with an exception.
* Where:
Build file '/builds/worker/checkouts/vcs/android-components/build.gradle' line: 31
* What went wrong:
A problem occurred evaluating root project 'android-components'.
> No such property: tools_androidgradle for class: org.gradle.api.artifacts.dsl.Dependencies
Assignee | ||
Comment 8•2 years ago
|
||
This will likely need a renaming of the Dependencies object in AC in order to avoid clashes with the org.gradle.api.artifacts.dsl.Dependencies class newly introduced in 7.6.
Assignee | ||
Updated•2 years ago
|
Assignee | ||
Updated•2 years ago
|
Comment 9•2 years ago
|
||
Clearing NI since https://bugzilla.mozilla.org/show_bug.cgi?id=1802817#c8 is probably what we need.
Comment 10•2 years ago
|
||
In order to upgrade Gradle, we need to rename Dependencies
currently in https://github.com/mozilla-mobile/firefox-android/blob/b4e0474f2481093e065479ac8713e7a0e06c5048/android-components/plugins/dependencies/src/main/java/DependenciesPlugin.kt#L98 to avoid clashes with org.gradle.api.artifacts.dsl.Dependencies
class newly introduced in 7.6.
@csadilek We are wondering about the best names here - ACDependencies, AndroidComponentsDependencies, ComponentsDependencies or some other alternative. Any preferences?
Comment 11•2 years ago
|
||
:gl, My preference would be ComponentDependencies
. That's in line with FocusDependencies
and FenixDependencies
.
BTW, I've noticed that we need to rename Dependencies.kt
to FenixDependencies
on our staging repo to align with Focus. We renamed the type, but not the file.
Assignee | ||
Updated•2 years ago
|
Reporter | ||
Comment 12•2 years ago
|
||
Assignee | ||
Updated•2 years ago
|
Reporter | ||
Comment 13•2 years ago
|
||
v7.6.1 is out now and is a recommended update over v7.6:
https://github.com/gradle/gradle/releases/tag/v7.6.1
Assignee | ||
Updated•2 years ago
|
Reporter | ||
Updated•2 years ago
|
Comment 14•2 years ago
|
||
No need to uplift to 111
Comment 15•2 years ago
|
||
Comment 16•1 year ago
|
||
Comment 17•1 year ago
|
||
Authored by https://github.com/mcarare
https://github.com/mozilla-mobile/firefox-android/commit/1031a37c115dd3745781772506b13b3039cc5734
[main] Bug 1802817 - Replace deprecated main with mainClass.
Description
•