forked from spandex-project/spandex_datadog
-
Notifications
You must be signed in to change notification settings - Fork 1
/
mix.exs
65 lines (58 loc) · 1.55 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
defmodule SpandexDatadog.MixProject do
use Mix.Project
@source_url "https://github.com/surgeventures/spandex_datadog"
@version "1.6.7"
def project do
[
app: :spandex_datadog,
deps: deps(),
description: "A datadog API adapter for spandex.",
docs: docs(),
elixir: "~> 1.6",
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
start_permanent: Mix.env() == :prod,
version: @version
]
end
def application do
[
extra_applications: [:logger]
]
end
defp package do
[
name: :spandex_datadog_fresha,
organization: "fresha",
maintainers: ["Greg Mefford"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/spandex_datadog_fresha/changelog.html",
"GitHub" => @source_url,
"Sponsor" => "https://github.com/sponsors/GregMefford"
}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp docs do
[
extras: ["CHANGELOG.md", "README.md"],
main: "readme",
formatters: ["html"],
skip_undefined_reference_warnings_on: ["CHANGELOG.md"]
]
end
defp deps do
[
{:msgpax, "~> 2.2.1 or ~> 2.3"},
{:spandex, "~> 4.1", hex: :spandex_fresha, organization: "fresha"},
{:telemetry, "~> 0.4.2 or ~> 1.0"},
# Dev- and test-only deps
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:req, "~> 0.5.0"},
{:hammox, "~> 0.7", only: :test},
{:stream_data, "~> 0.5", only: :test}
]
end
end