-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
41 lines (38 loc) · 849 Bytes
/
mix.exs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
defmodule EMQ.Plugins.Bridge.Mixfile do
use Mix.Project
def project do
[
app: :mqtt_bridge,
version: "0.1.0",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
language: :erlang,
deps: deps(),
]
end
defp deps do
[
{:emqttc, github: "phanimahesh/emqttc"},
{:goldrush, github: "basho/goldrush",
tag: "0.1.9", override: true, compile: "make"},
{:distillery, "~> 1.5", runtime: false},
{:conform, "~> 2.2"},
{:mix_docker, "~> 0.5.0"},
]
end
defp env() do
# Refer to emqttc connect options for mqtt_opts
[{:mqtt_opts, [{:logger, :info}]}]
end
def application do
[
mod: {:mqtt_bridge_app, []},
env: env(),
applications: [
:kernel,
:stdlib,
:emqttc
],
]
end
end