android-components icon indicating copy to clipboard operation
android-components copied to clipboard

Include implementation dependencies in android-gradle-dependencies

Open agi opened this issue 5 years ago • 2 comments

We are changing the GeckoView dependencies to be runtime dependencies in the pom file in Bug 1727438

From what I can tell this is not well accounted for in android-gradle-dependencies, see https://github.com/mozilla-mobile/android-components/pull/10884

[task 2021-08-26T17:28:30.860Z] * What went wrong:
[task 2021-08-26T17:28:30.860Z] Execution failed for task ':browser-engine-gecko:mergeDebugAndroidTestNativeLibs'.
[task 2021-08-26T17:28:30.860Z] > Could not resolve all files for configuration ':browser-engine-gecko:debugAndroidTestRuntimeClasspath'.
[task 2021-08-26T17:28:30.860Z]    > Failed to transform snakeyaml-1.24-android.jar (org.yaml:snakeyaml:1.24) to match attributes {artifactType=android-jni, org.gradle.libraryelements=jar, org.gradle.status=release, org.gradle.usage=java-runtime}.
[task 2021-08-26T17:28:30.860Z]       > Could not find snakeyaml-1.24-android.jar (org.yaml:snakeyaml:1.24).
[task 2021-08-26T17:28:30.861Z]         Searched in the following locations:
[task 2021-08-26T17:28:30.861Z]             file:/builds/worker/fetches/android-gradle-dependencies/central/org/yaml/snakeyaml/1.24/snakeyaml-1.24-android.jar

We had to deal with something like this in GeckoView before, we solved it by traversing the dependency tree of every configuration, see https://hg.mozilla.org/mozilla-central/rev/468babe629d5d72ab3dd4ce2639586a572df4f3f

We should probably doing something similar in AC (and maybe Fenix) too.

┆Issue is synchronized with this Jira Task

agi avatar Aug 26 '21 19:08 agi

The GeckoView version bump doesn't trigger a toolchain rebuild (See list here).

You can force it though, by changing one of those files and that's what we have done by bumping this date: thttps://github.com/mozilla-mobile/android-components/blob/main/taskcluster/ci/toolchain/android.yml#L44-L48

pocmo avatar Aug 30 '21 16:08 pocmo

Yeah the runtime dependency was a red herring. I think we can close this.

agi avatar Aug 31 '21 19:08 agi