-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
53 lines (46 loc) · 1.09 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
defmodule Coney.Mixfile do
use Mix.Project
def project do
[
app: :coney,
version: "3.1.2",
elixir: ">= 1.12.0",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
description: description(),
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
deps: deps()
]
end
def application do
[
extra_applications: [:logger],
mod: {Coney.Application, []}
]
end
defp deps do
[
{:amqp, "~> 3.3"},
# Dev deps
{:ex_doc, "~> 0.34", only: :dev, runtime: false},
{:credo, "~> 1.7", only: [:dev, :test], runtime: false}
]
end
defp description do
"""
Consumer server for RabbitMQ.
"""
end
defp elixirc_paths(env) when env in [:test, :dev], do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
name: :coney,
files: ["lib", "mix.exs", "README.md", "LICENSE.txt"],
maintainers: ["Yolo Group"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/coingaming/coney"}
]
end
end