mavenLocal.patch 1.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. From 6ce1e079030b9191d2a9960b3fb266d7b723180c Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Tue, 21 Apr 2020 11:03:13 +0000
  4. Subject: [PATCH] Bug 33927: Use local maven repository for gradle dependencies
  5. ---
  6. build.gradle | 2 ++
  7. buildSrc/build.gradle | 1 +
  8. buildSrc/settings.gradle | 5 +++++
  9. settings.gradle | 6 ++++++
  10. 4 files changed, 14 insertions(+)
  11. create mode 100644 buildSrc/settings.gradle
  12. diff --git a/build.gradle b/build.gradle
  13. index 093a4fcd2..9b51c77d3 100644
  14. --- a/build.gradle
  15. +++ b/build.gradle
  16. @@ -5,6 +5,7 @@ import org.mozilla.fenix.gradle.tasks.GithubDetailsTask
  17. buildscript {
  18. // This logic is duplicated in the allprojects block: I don't know how to fix that.
  19. repositories {
  20. + mavenLocal()
  21. maven {
  22. name "Mozilla Nightly"
  23. url "https://nightly.maven.mozilla.org/maven2"
  24. @@ -80,6 +81,7 @@ plugins {
  25. allprojects {
  26. // This logic is duplicated in the buildscript block: I don't know how to fix that.
  27. repositories {
  28. + mavenLocal()
  29. maven {
  30. name "Mozilla Nightly"
  31. url "https://nightly.maven.mozilla.org/maven2"
  32. diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
  33. index c3d133e6a..2eb6e05c3 100644
  34. --- a/buildSrc/build.gradle
  35. +++ b/buildSrc/build.gradle
  36. @@ -7,6 +7,7 @@ plugins {
  37. }
  38. repositories {
  39. + mavenLocal()
  40. if (project.hasProperty("centralRepo")) {
  41. maven {
  42. name "MavenCentral"
  43. diff --git a/buildSrc/settings.gradle b/buildSrc/settings.gradle
  44. new file mode 100644
  45. index 000000000..a7066edcb
  46. --- /dev/null
  47. +++ b/buildSrc/settings.gradle
  48. @@ -0,0 +1,5 @@
  49. +pluginManagement {
  50. + repositories {
  51. + mavenLocal()
  52. + }
  53. +}
  54. diff --git a/settings.gradle b/settings.gradle
  55. index 8440fc306..d2e8ba475 100644
  56. --- a/settings.gradle
  57. +++ b/settings.gradle
  58. @@ -1,3 +1,9 @@
  59. +pluginManagement {
  60. + repositories {
  61. + mavenLocal()
  62. + }
  63. +}
  64. +
  65. include ':app'
  66. include ':mozilla-detekt-rules'