how-to-create-gradle-dependencies-list.txt 1.5 KB

12345678910111213141516171819202122232425262728293031323334
  1. ### Updating Gradle Dependencies
  2. If additional Android dependencies are required by the project's build, then
  3. the Gradle build will fail due to missing dependencies. To find out what the
  4. missing dependencies are take the following steps.
  5. If the dependencies for `application-services`, `android-components`, or `fenix`
  6. are needed, set the `fetch_gradle_dependencies` flag in their `config` files to
  7. `1`.
  8. For the firefox project, comment out the following line in the project's build file:
  9. export GRADLE_MAVEN_REPOSITORIES="file://$gradle_repo"
  10. Also modify the gradle flags to include the debug option so the download logs will show up:
  11. export GRADLE_FLAGS="--no-daemon --debug"
  12. Otherwise, when calling gradle in the project's build script replace the
  13. `--offline` flag with `--debug` and remove any `-Dmaven.repo.local` arguments.
  14. Finally, allow network access during the build by setting
  15. `var/container/disable_network/build` to `0` in rbm.conf, and rerun the build.
  16. Dependent artifacts will show up as downloads in the logs. You can pull out
  17. these dependencies into a list by passing the log file to the gradle dependency
  18. list script in the tools directory:
  19. `./gen_gradle_deps_file.sh /path/to/log/file`
  20. Copy the resulting `gradle-dependencies-list.txt` over the one in the respective
  21. project. Then, in the project's config file, increment the
  22. `var/gradle_dependencies_version` and make sure to restore the project's build
  23. file back to original or set `fetch_gradle_dependencies` to `0` again.