forked from danschultzer/ex_oauth2_provider
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
68 lines (55 loc) · 1.55 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
defmodule ExOauth2Provider.Mixfile do
use Mix.Project
@version "0.5.6"
def project do
[
app: :ex_oauth2_provider,
version: @version,
elixir: "~> 1.8",
elixirc_paths: elixirc_paths(Mix.env),
start_permanent: Mix.env == :prod,
deps: deps(),
# Hex
description: "No brainer OAuth 2.0 provider",
package: package(),
# Docs
name: "ExOauth2Provider",
docs: docs()
]
end
def application do
[extra_applications: extra_applications(Mix.env)]
end
defp extra_applications(:test), do: [:ecto, :logger]
defp extra_applications(_), do: [:logger]
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:ecto, "~> 3.0"},
{:plug, ">= 1.5.0 and < 2.0.0"},
# Dev and test dependencies
{:credo, "~> 1.1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev},
{:ecto_sql, "~> 3.0.0", only: :test},
{:plug_cowboy, "~> 2.0", only: :test},
{:postgrex, "~> 0.14", only: :test}]
end
defp package do
[
maintainers: ["Dan Shultzer", "Benjamin Schultzer"],
licenses: ["MIT"],
links: %{github: "https://github.com/danschultzer/ex_oauth2_provider"},
files: ~w(lib LICENSE mix.exs README.md)
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "ExOauth2Provider",
canonical: "http://hexdocs.pm/ex_oauth2_provider",
source_url: "https://github.com/danschultzer/ex_oauth2_provider",
extras: ["README.md"]
]
end
end