Просмотр исходного кода

refactor(new mix build): make `:erlavro` a common dependency

Thales Macedo Garitezi 1 год назад
Родитель
Сommit
a09bbf6a5b
3 измененных файлов с 6 добавлено и 2 удалено
  1. 4 1
      apps/emqx_plugins/mix.exs
  2. 1 1
      apps/emqx_schema_registry/mix.exs
  3. 1 0
      mix.exs

+ 4 - 1
apps/emqx_plugins/mix.exs

@@ -22,6 +22,9 @@ defmodule EMQXPlugins.MixProject do
   end
 
   def deps() do
-    [{:emqx, in_umbrella: true}, {:erlavro, github: "emqx/erlavro", tag: "2.10.0"}]
+    [
+      {:emqx, in_umbrella: true},
+      UMP.common_dep(:erlavro),
+    ]
   end
 end

+ 1 - 1
apps/emqx_schema_registry/mix.exs

@@ -26,7 +26,7 @@ defmodule EMQXSchemaRegistry.MixProject do
       {:emqx, in_umbrella: true},
       {:emqx_utils, in_umbrella: true},
       {:emqx_rule_engine, in_umbrella: true},
-      {:erlavro, github: "emqx/erlavro", tag: "2.10.0"},
+      UMP.common_dep(:erlavro),
       UMP.common_dep(:jesse),
       UMP.common_dep(:gpb, runtime: true),
     ]

+ 1 - 0
mix.exs

@@ -285,6 +285,7 @@ defmodule EMQXUmbrella.MixProject do
   def common_dep(:snappyer), do: {:snappyer, "1.2.9", override: true}
   def common_dep(:crc32cer), do: {:crc32cer, "0.1.8", override: true}
   def common_dep(:jesse), do: {:jesse, github: "emqx/jesse", tag: "1.8.0.1"}
+  def common_dep(:erlavro), do: {:erlavro, github: "emqx/erlavro", tag: "2.10.0"}
 
   ###############################################################################################
   # BEGIN DEPRECATED FOR MIX BLOCK