mavenLocal.patch 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. From 563526695139d07ec8192c71c99270b0de3e33ff Mon Sep 17 00:00:00 2001
  2. From: Georg Koppen <gk@torproject.org>
  3. Date: Wed, 20 May 2020 14:18:12 +0000
  4. Subject: [PATCH] mavenLocal() fixes
  5. ---
  6. build.gradle | 2 ++
  7. buildSrc/build.gradle | 2 ++
  8. buildSrc/settings.gradle | 7 ++++++-
  9. settings.gradle | 7 +++++++
  10. 4 files changed, 17 insertions(+), 1 deletion(-)
  11. diff --git a/build.gradle b/build.gradle
  12. index eb19f4a217..c86abd5559 100644
  13. --- a/build.gradle
  14. +++ b/build.gradle
  15. @@ -6,6 +6,7 @@ import static org.gradle.api.tasks.testing.TestResult.ResultType
  16. buildscript {
  17. repositories {
  18. + mavenLocal()
  19. if (project.hasProperty("googleRepo")) {
  20. maven {
  21. name "Google"
  22. @@ -40,6 +41,7 @@ plugins {
  23. allprojects {
  24. repositories {
  25. + mavenLocal()
  26. if (project.hasProperty("googleRepo")) {
  27. maven {
  28. name "Google"
  29. diff --git a/buildSrc/build.gradle b/buildSrc/build.gradle
  30. index b2af6cdea2..67a25b7841 100644
  31. --- a/buildSrc/build.gradle
  32. +++ b/buildSrc/build.gradle
  33. @@ -7,6 +7,8 @@ plugins {
  34. }
  35. repositories {
  36. + mavenLocal()
  37. +
  38. if (project.hasProperty("centralRepo")) {
  39. maven {
  40. name "MavenCentral"
  41. diff --git a/buildSrc/settings.gradle b/buildSrc/settings.gradle
  42. index c31ad3840d..fb6526db30 100644
  43. --- a/buildSrc/settings.gradle
  44. +++ b/buildSrc/settings.gradle
  45. @@ -1,10 +1,15 @@
  46. /* This Source Code Form is subject to the terms of the Mozilla Public
  47. * License, v. 2.0. If a copy of the MPL was not distributed with this
  48. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  49. +pluginManagement {
  50. + repositories {
  51. + mavenLocal()
  52. + }
  53. +}
  54. buildCache {
  55. local {
  56. directory = new File(rootDir, '../.build-cache')
  57. removeUnusedEntriesAfterDays = 30
  58. }
  59. -}
  60. \ No newline at end of file
  61. +}
  62. diff --git a/settings.gradle b/settings.gradle
  63. index e1204312f5..428e9ddcdf 100644
  64. --- a/settings.gradle
  65. +++ b/settings.gradle
  66. @@ -4,8 +4,15 @@
  67. import org.yaml.snakeyaml.Yaml
  68. +pluginManagement {
  69. + repositories {
  70. + mavenLocal()
  71. + }
  72. +}
  73. +
  74. buildscript {
  75. repositories {
  76. + mavenLocal()
  77. if (hasProperty("centralRepo")) {
  78. maven {
  79. name "MavenCentral"