Pārlūkot izejas kodu

chore: update gateways deps

JianBo He 2 gadi atpakaļ
vecāks
revīzija
3a3879f99f

+ 3 - 1
apps/emqx_coap/rebar.config

@@ -1,2 +1,4 @@
 {erl_opts, [debug_info]}.
 {erl_opts, [debug_info]}.
-{deps, []}.
+{deps, [ {emqx, {path, "../../apps/emqx"}},
+         {emqx_gateway, {path, "../../apps/emqx_gateway"}}
+       ]}.

+ 1 - 1
apps/emqx_coap/src/emqx_coap.app.src

@@ -2,7 +2,7 @@
     {description, "CoAP Gateway"},
     {description, "CoAP Gateway"},
     {vsn, "0.1.0"},
     {vsn, "0.1.0"},
     {registered, []},
     {registered, []},
-    {applications, [kernel, stdlib, emqx_gateway]},
+    {applications, [kernel, stdlib, emqx, emqx_gateway]},
     {env, []},
     {env, []},
     {modules, []},
     {modules, []},
     {licenses, ["Apache 2.0"]},
     {licenses, ["Apache 2.0"]},

+ 3 - 1
apps/emqx_exproto/rebar.config

@@ -1,5 +1,7 @@
 {erl_opts, [debug_info]}.
 {erl_opts, [debug_info]}.
-{deps, []}.
+{deps, [ {emqx, {path, "../../apps/emqx"}},
+         {emqx_gateway, {path, "../../apps/emqx_gateway"}}
+       ]}.
 
 
 {plugins, [
 {plugins, [
     {grpc_plugin, {git, "https://github.com/HJianBo/grpc_plugin", {tag, "v0.10.2"}}}
     {grpc_plugin, {git, "https://github.com/HJianBo/grpc_plugin", {tag, "v0.10.2"}}}

+ 1 - 1
apps/emqx_exproto/src/emqx_exproto.app.src

@@ -2,7 +2,7 @@
     {description, "ExProto Gateway"},
     {description, "ExProto Gateway"},
     {vsn, "0.1.0"},
     {vsn, "0.1.0"},
     {registered, []},
     {registered, []},
-    {applications, [kernel, stdlib, emqx_gateway, grpc]},
+    {applications, [kernel, stdlib, grpc, emqx, emqx_gateway]},
     {env, []},
     {env, []},
     {modules, []},
     {modules, []},
     {licenses, ["Apache 2.0"]},
     {licenses, ["Apache 2.0"]},

+ 3 - 1
apps/emqx_lwm2m/rebar.config

@@ -1,2 +1,4 @@
 {erl_opts, [debug_info]}.
 {erl_opts, [debug_info]}.
-{deps, []}.
+{deps, [ {emqx, {path, "../../apps/emqx"}},
+         {emqx_gateway, {path, "../../apps/emqx_gateway"}}
+       ]}.

+ 1 - 1
apps/emqx_lwm2m/src/emqx_lwm2m.app.src

@@ -2,7 +2,7 @@
     {description, "LwM2M Gateway"},
     {description, "LwM2M Gateway"},
     {vsn, "0.1.0"},
     {vsn, "0.1.0"},
     {registered, []},
     {registered, []},
-    {applications, [kernel, stdlib, emqx_gateway, emqx_coap]},
+    {applications, [kernel, stdlib, emqx, emqx_gateway, emqx_coap]},
     {env, []},
     {env, []},
     {modules, []},
     {modules, []},
     {licenses, ["Apache 2.0"]},
     {licenses, ["Apache 2.0"]},

+ 3 - 1
apps/emqx_mqttsn/rebar.config

@@ -1,2 +1,4 @@
 {erl_opts, [debug_info]}.
 {erl_opts, [debug_info]}.
-{deps, []}.
+{deps, [ {emqx, {path, "../../apps/emqx"}},
+         {emqx_gateway, {path, "../../apps/emqx_gateway"}}
+       ]}.

+ 1 - 1
apps/emqx_mqttsn/src/emqx_mqttsn.app.src

@@ -2,7 +2,7 @@
     {description, "MQTT-SN Gateway"},
     {description, "MQTT-SN Gateway"},
     {vsn, "0.1.0"},
     {vsn, "0.1.0"},
     {registered, []},
     {registered, []},
-    {applications, [kernel, stdlib, emqx_gateway]},
+    {applications, [kernel, stdlib, emqx, emqx_gateway]},
     {env, []},
     {env, []},
     {modules, []},
     {modules, []},
     {licenses, ["Apache 2.0"]},
     {licenses, ["Apache 2.0"]},

+ 3 - 1
apps/emqx_stomp/rebar.config

@@ -1,2 +1,4 @@
 {erl_opts, [debug_info]}.
 {erl_opts, [debug_info]}.
-{deps, []}.
+{deps, [ {emqx, {path, "../../apps/emqx"}},
+         {emqx_gateway, {path, "../../apps/emqx_gateway"}}
+       ]}.

+ 1 - 1
apps/emqx_stomp/src/emqx_stomp.app.src

@@ -2,7 +2,7 @@
     {description, "Stomp Gateway"},
     {description, "Stomp Gateway"},
     {vsn, "0.1.0"},
     {vsn, "0.1.0"},
     {registered, []},
     {registered, []},
-    {applications, [kernel, stdlib, emqx_gateway]},
+    {applications, [kernel, stdlib, emqx, emqx_gateway]},
     {env, []},
     {env, []},
     {modules, []},
     {modules, []},
     {licenses, ["Apache 2.0"]},
     {licenses, ["Apache 2.0"]},

+ 5 - 0
mix.exs

@@ -221,6 +221,11 @@ defmodule EMQXUmbrella.MixProject do
           applications: applications(edition_type),
           applications: applications(edition_type),
           skip_mode_validation_for: [
           skip_mode_validation_for: [
             :emqx_gateway,
             :emqx_gateway,
+            :emqx_stomp,
+            :emqx_mqttsn,
+            :emqx_coap,
+            :emqx_lwm2m,
+            :emqx_exproto,
             :emqx_dashboard,
             :emqx_dashboard,
             :emqx_resource,
             :emqx_resource,
             :emqx_connector,
             :emqx_connector,