-
-
Notifications
You must be signed in to change notification settings - Fork 42
/
mix.exs
63 lines (56 loc) · 1.46 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
defmodule SpandexDatadog.MixProject do
use Mix.Project
@source_url "https://github.com/spandex-project/spandex_datadog"
@version "1.4.0"
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,
maintainers: ["Greg Mefford"],
licenses: ["MIT"],
links: %{
"Changelog" => "https://hexdocs.pm/spandex_datadog/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, "~> 3.2"},
{:telemetry, "~> 0.4.2 or ~> 1.0"},
# Dev- and test-only deps
{:ex_doc, ">= 0.0.0", only: :dev, runtime: false},
{:httpoison, "~> 0.13 or ~> 1.0 or ~> 2.0", only: :test},
{:mox, "~> 1.0", only: :test}
]
end
end