-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
75 lines (67 loc) · 1.86 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
defmodule PulsarEx.MixProject do
use Mix.Project
def project do
[
name: "PulsarEx",
app: :pulsar_ex,
version: "0.14.1",
elixir: "~> 1.15.7",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
description: description(),
deps: deps(),
test_paths: test_paths(Mix.env()),
aliases: aliases(),
package: package(),
source_url: "https://github.com/blueshift-labs/pulsar_ex",
docs: [
main: "PulsarEx",
extras: ["README.md"]
]
]
end
defp description() do
"A pulsar client implemented purely in Elixir"
end
defp aliases do
[
test: "test --color"
]
end
def application do
[
extra_applications: [:logger],
mod: {PulsarEx.Application, []}
]
end
defp test_paths(:test), do: ["test/unit"]
defp test_paths(:integration), do: ["test/integration"]
defp test_paths(_), do: ["test"]
defp elixirc_paths(:test), do: ["test/support", "lib"]
defp elixirc_paths(:integration), do: ["test/support", "lib"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:telemetry, "~> 1.1"},
{:telemetry_metrics, "~> 0.6", only: [:test, :integration]},
{:telemetry_metrics_statsd, "~> 0.7", only: [:test, :integration]},
{:telemetry_poller, "~> 1.0", only: [:test, :integration]},
{:nimble_lz4, "~> 0.1.2", optional: true},
{:hackney, "~> 1.18"},
{:crc32cer, "0.1.10"},
{:protobuf, "~> 0.11.0"},
{:connection, "~> 1.1"},
{:poolboy, "~> 1.5"},
{:timex, "~> 3.7"},
{:jason, "~> 1.2"}
]
end
defp package() do
[
files: ~w(lib .formatter.exs mix.exs README* LICENSE*),
licenses: ~w(MIT),
links: %{"GitHub" => "https://github.com/blueshift-labs/pulsar_ex"}
]
end
end