This repository has been archived by the owner on Oct 12, 2023. It is now read-only.
forked from spandex-project/spandex_datadog
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
62 lines (55 loc) · 1.41 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
defmodule SpandexDatadog.MixProject do
use Mix.Project
@source_url "https://github.com/spandex-project/spandex_datadog"
@version "1.2.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.0"},
{: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", only: :test}
]
end
end