-
Notifications
You must be signed in to change notification settings - Fork 48
/
mix.exs
58 lines (52 loc) · 1.17 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
defmodule Plug.Cowboy.MixProject do
use Mix.Project
@source_url "https://github.com/elixir-plug/plug_cowboy"
@version "2.7.2"
@description "A Plug adapter for Cowboy"
def project do
[
app: :plug_cowboy,
version: @version,
elixir: "~> 1.11",
deps: deps(),
package: package(),
description: @description,
name: "Plug.Cowboy",
docs: [
main: "Plug.Cowboy",
source_ref: "v#{@version}",
source_url: @source_url,
extras: ["CHANGELOG.md"]
],
aliases: aliases()
]
end
def application do
[
extra_applications: [:logger],
mod: {Plug.Cowboy, []}
]
end
def deps do
[
{:plug, "~> 1.14"},
{:cowboy, "~> 2.7"},
{:cowboy_telemetry, "~> 0.3"},
{:ex_doc, "~> 0.20", only: :docs},
{:hackney, "~> 1.2", only: :test},
{:x509, "~> 0.6", only: :test}
]
end
defp package do
%{
licenses: ["Apache-2.0"],
maintainers: ["José Valim", "Gary Rennie"],
links: %{"GitHub" => @source_url}
}
end
defp aliases do
[
test: ["x509.gen.suite -f -p cowboy -o test/fixtures/ssl", "test"]
]
end
end