-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathmix.exs
75 lines (68 loc) · 1.82 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
68
69
70
71
72
73
74
75
defmodule JSONRPC2.Mixfile do
use Mix.Project
@version "2.0.0"
def project do
[
app: :jsonrpc2,
version: @version,
elixir: "~> 1.8",
deps: deps(),
elixirc_paths: elixirc_paths(Mix.env()),
description: description(),
package: package(),
name: "JSONRPC2",
docs: [
source_ref: "v#{@version}",
main: "readme",
canonical: "http://hexdocs.pm/jsonrpc2",
source_url: "https://github.com/fanduel/jsonrpc2-elixir",
extras: ["README.md"]
],
xref: [
exclude: [
Poison,
:hackney,
:jiffy,
:ranch,
:shackle,
:shackle_pool,
Plug.Conn,
Plug.Adapters.Cowboy,
Plug.Cowboy
]
]
]
end
def application do
[extra_applications: [:logger], env: [serializer: Jason]]
end
defp deps do
[
{:jason, "~> 1.0", optional: true},
{:poison, "~> 4.0 or ~> 3.0 or ~> 2.0", optional: true},
{:jiffy, "~> 1.0 or ~> 0.14", optional: true},
{:shackle, "~> 0.3", optional: true},
{:ranch, "~> 1.2", optional: true},
{:hackney, "~> 1.6", optional: true},
{:plug, "~> 1.3", optional: true},
{:plug_cowboy, "~> 2.0", optional: true},
{:cowboy, "~> 2.4 or ~> 1.1", optional: true},
{:ex_doc, "~> 0.20", only: :dev}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp description do
"JSON-RPC 2.0 for Elixir."
end
defp package do
[
licenses: ["Apache 2.0"],
links: %{
"Important v2.0 Upgrade Information" => "https://hexdocs.pm/jsonrpc2/readme.html#v2-0-upgrade",
"GitHub" => "https://github.com/fanduel/jsonrpc2-elixir"
},
files: ~w(mix.exs README.md LICENSE lib)
]
end
end