This repository was archived by the owner on Oct 12, 2023. It is now read-only.
forked from newrelic/elixir_agent
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmix.exs
More file actions
54 lines (48 loc) · 1.21 KB
/
mix.exs
File metadata and controls
54 lines (48 loc) · 1.21 KB
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
defmodule NewRelic.Mixfile do
use Mix.Project
def project do
[
app: :new_relic_agent,
description: "New Relic's Open-Source Elixir Agent",
version: agent_version(),
elixir: "~> 1.7",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
name: "New Relic Elixir Agent",
source_url: "https://github.com/newrelic/elixir_agent",
package: package(),
deps: deps(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :inets, :ssl, :os_mon],
mod: {NewRelic.Application, []}
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "CHANGELOG.md", "VERSION"],
maintainers: ["Vince Foley"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/newrelic/elixir_agent"}
]
end
defp deps do
[
{:ex_doc, "~> 0.19", only: :dev, runtime: false},
{:jason, "~> 1.0"},
{:plug_cowboy, "~> 2.0"},
{:httpoison, "~> 1.0"}
]
end
defp docs do
[
main: "readme",
extras: ["README.md", "CHANGELOG.md"]
]
end
@agent_version File.read!("VERSION") |> String.trim()
def agent_version, do: @agent_version
end