-
Notifications
You must be signed in to change notification settings - Fork 9
/
mix.exs
67 lines (58 loc) · 1.47 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
defmodule OpentelemetryCommanded.MixProject do
use Mix.Project
def project do
[
app: :opentelemetry_commanded,
version: "0.2.0",
elixir: "~> 1.10",
elixirc_paths: elixirc_paths(Mix.env()),
start_permanent: Mix.env() == :prod,
package: package(),
deps: deps(),
description: "Trace Commanded CQRS operations with OpenTelemetry",
source_url: "https://github.com/SimpleBet/opentelemetry_commanded",
homepage_url: "https://github.com/SimpleBet/opentelemetry_commanded",
docs: docs()
]
end
defp elixirc_paths(env) when env in [:test],
do: [
"lib",
"test/support",
"test/dummy_app"
]
defp elixirc_paths(_env), do: ["lib"]
# Run "mix help compile.app" to learn about applications.
def application do
[]
end
defp package do
[
licenses: ["Apache-2"],
links: %{"GitHub" => "https://github.com/SimpleBet/opentelemetry_commanded"}
]
end
defp deps do
[
{:commanded, "~> 1.4"},
{:opentelemetry_telemetry, "~> 1.0"},
{:telemetry, "~> 1.0"},
{:opentelemetry, "~> 1.0"},
# Testing
{:jason, "~> 1.2", only: :test},
{:ecto, "~> 3.7.1", only: :test},
# Tools
{:ex_doc, ">= 0.0.0", only: [:dev], runtime: false}
]
end
defp docs do
[
main: "readme",
skip_undefined_reference_warnings_on: ["CHANGELOG.md"],
extras: [
"README.md",
"CHANGELOG.md"
]
]
end
end