forked from ueberauth/oauth2
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (62 loc) · 1.59 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
defmodule OAuth2.Mixfile do
use Mix.Project
@version "2.0.0"
def project do
[
app: :oauth2,
name: "OAuth2",
version: @version,
elixir: "~> 1.2",
deps: deps(),
package: package(),
description: description(),
docs: docs(),
elixirc_paths: elixirc_paths(Mix.env()),
test_coverage: [tool: ExCoveralls],
preferred_cli_env: [
coveralls: :test,
"coveralls.detail": :test,
"coveralls.html": :test,
docs: :dev
]
]
end
def application do
[applications: [:logger, :hackney]]
end
defp deps do
[
{:hackney, "~> 1.13"},
# Test dependencies
{:jason, "~> 1.0", only: [:dev, :test]},
{:bypass, "~> 0.9", only: :test},
{:plug_cowboy, "~> 1.0", only: :test},
{:excoveralls, "~> 0.9", only: :test},
{:credo, "~> 1.1.0", only: [:dev, :test], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
# Docs dependencies
{:ex_doc, "~> 0.19", only: :dev}
]
end
defp description do
"An Elixir OAuth 2.0 Client Library"
end
defp docs do
[
extras: ["README.md"],
main: "readme",
source_ref: "v#{@version}",
source_url: "https://github.com/scrogson/oauth2"
]
end
defp package do
[
files: ["lib", "mix.exs", "README.md", "LICENSE"],
maintainers: ["Sonny Scroggin"],
licenses: ["MIT"],
links: %{github: "https://github.com/scrogson/oauth2"}
]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
end