Closed Bug 1802817 Opened 1 year ago Closed 1 year ago

Update Gradle to version 7.6.1 and Android Gradle Plugin to 7.4.1

Categories

(Fenix :: General, task, P2)

All
Android

Tracking

(firefox110 wontfix, firefox111 wontfix, firefox112 fixed, firefox116 fixed)

RESOLVED FIXED
116 Branch
Tracking Status
firefox110 --- wontfix
firefox111 --- wontfix
firefox112 --- fixed
firefox116 --- fixed

People

(Reporter: RyanVM, Assigned: mcarare)

References

Details

(Whiteboard: [geckoview:m112])

Attachments

(2 files, 2 obsolete files)

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.

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.

Flags: needinfo?(gl)

Do you have a PR with CI logs that we could look at?

Flags: needinfo?(gl)

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
Flags: needinfo?(gl)

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.

Summary: Update Gradle to version 7.6 → Update Gradle to version 7.6 and Android Gradle Plugin to 7.4.1
Depends on: 1813671
Assignee: ryanvm → mcarare
Severity: -- → N/A
Priority: -- → P2

Clearing NI since https://bugzilla.mozilla.org/show_bug.cgi?id=1802817#c8 is probably what we need.

Flags: needinfo?(gl)

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?

Flags: needinfo?(csadilek)

: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.

Flags: needinfo?(csadilek)
Whiteboard: [geckoview:m112]
Comment on attachment 9311122 [details] [review]
[mozilla-mobile/fenix] Bug 1802817 - Update Fenix to Gradle 7.6 (#27993)

Setting the Fenix PR to obsolete. We should roll it into the firefox-android PR to land after the migration next week.
Attachment #9311122 - Attachment is obsolete: true
Attachment #9311127 - Attachment is obsolete: true

v7.6.1 is out now and is a recommended update over v7.6:
https://github.com/gradle/gradle/releases/tag/v7.6.1

Summary: Update Gradle to version 7.6 and Android Gradle Plugin to 7.4.1 → Update Gradle to version 7.6.1 and Android Gradle Plugin to 7.4.1
Status: NEW → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 112 Branch

No need to uplift to 111

Depends on: Java17
No longer depends on: Java17
Flags: qe-verify+
Target Milestone: 112 Branch → 116 Branch

No QA needed for the build system change.

Flags: qe-verify+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: