mavenLocal.patch 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. From 9f848d22882e49d38ff494e684dc54661ec9b714 Mon Sep 17 00:00:00 2001
  2. From: aguestuser <aguestuser@torproject.org>
  3. Date: Mon, 28 Mar 2022 10:43:02 -0400
  4. Subject: [PATCH] Use local maven repository for gradle dependencies
  5. ---
  6. build.gradle | 2 ++
  7. settings.gradle | 7 +++++++
  8. 2 files changed, 9 insertions(+)
  9. diff --git a/build.gradle b/build.gradle
  10. index 8e78d9af..635f0740 100644
  11. --- a/build.gradle
  12. +++ b/build.gradle
  13. @@ -38,6 +38,7 @@ buildscript {
  14. ]
  15. repositories {
  16. + mavenLocal()
  17. mavenCentral()
  18. google()
  19. jcenter()
  20. @@ -90,6 +91,7 @@ apply plugin: 'de.undercouch.download'
  21. allprojects {
  22. repositories {
  23. + mavenLocal()
  24. google()
  25. jcenter()
  26. maven {
  27. diff --git a/settings.gradle b/settings.gradle
  28. index 2349f829..5d9ceb85 100644
  29. --- a/settings.gradle
  30. +++ b/settings.gradle
  31. @@ -2,12 +2,19 @@
  32. * License, v. 2.0. If a copy of the MPL was not distributed with this
  33. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  34. +pluginManagement {
  35. + repositories {
  36. + mavenLocal()
  37. + }
  38. +}
  39. +
  40. import org.yaml.snakeyaml.Yaml
  41. buildscript {
  42. dependencies {
  43. classpath 'org.yaml:snakeyaml:1.23'
  44. }
  45. repositories {
  46. + mavenLocal()
  47. jcenter()
  48. }
  49. }
  50. --
  51. 2.32.0