mavenLocal.patch 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. From 1eed35b66ea9d943d6ea648649b0012e132f3602 Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Thu, 2 Jul 2020 20:34:23 +0000
  4. Subject: [PATCH] Use local maven repository for gradle dependencies
  5. diff --git a/build.gradle b/build.gradle
  6. index 4715a7cd..1e71ca04 100644
  7. --- a/build.gradle
  8. +++ b/build.gradle
  9. @@ -17,6 +17,7 @@ buildscript {
  10. ]
  11. repositories {
  12. + mavenLocal()
  13. google()
  14. jcenter()
  15. maven {
  16. @@ -57,6 +58,7 @@ apply plugin: 'de.undercouch.download'
  17. allprojects {
  18. repositories {
  19. + mavenLocal()
  20. google()
  21. jcenter()
  22. maven {
  23. diff --git a/settings.gradle b/settings.gradle
  24. index 2349f829..f0ad1ef9 100644
  25. --- a/settings.gradle
  26. +++ b/settings.gradle
  27. @@ -1,6 +1,11 @@
  28. /* This Source Code Form is subject to the terms of the Mozilla Public
  29. * License, v. 2.0. If a copy of the MPL was not distributed with this
  30. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  31. +pluginManagement {
  32. + repositories {
  33. + mavenLocal()
  34. + }
  35. +}
  36. import org.yaml.snakeyaml.Yaml
  37. buildscript {
  38. @@ -8,6 +13,7 @@ buildscript {
  39. classpath 'org.yaml:snakeyaml:1.23'
  40. }
  41. repositories {
  42. + mavenLocal()
  43. jcenter()
  44. }
  45. }
  46. --
  47. 2.27.0