-
Notifications
You must be signed in to change notification settings - Fork 34
/
mix.exs
60 lines (56 loc) · 1.17 KB
/
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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
defmodule RabbitMQ.MessageDeduplicationPlugin.Mixfile do
use Mix.Project
def project do
[
app: :rabbitmq_message_deduplication,
version: "0.6.4",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
deps: deps(),
deps_path: System.get_env("DEPS_DIR", "deps"),
aliases: aliases()
]
end
def application do
[
applications: [:mnesia],
extra_applications: [:rabbit],
mod: {RabbitMQMessageDeduplication, []},
registered: [RabbitMQMessageDeduplication],
broker_version_requirements: if Mix.env == :prod do
["3.13.0", "4.0.0"]
else
[]
end
]
end
defp deps() do
[
{
:mix_task_archive_deps, "~> 1.0"
}
]
end
defp aliases do
[
# Do not start the application during unit tests
test: "test --no-start",
make_deps: [
"deps.get",
"deps.compile"
],
make_app: [
"make_deps",
"compile"
],
make_archives: [
"archive.build.elixir",
"archive.build.all"
],
make_tests: [
"make_deps",
"test"
]
]
end
end