forked from potatosalad/erlang-jose
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
73 lines (66 loc) · 2.02 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
defmodule JOSE.Mixfile do
use Mix.Project
def project() do
[
app: :jose,
version: "1.11.5",
elixir: "~> 1.13",
erlc_options: erlc_options(),
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
deps: deps(),
name: "JOSE",
source_url: "https://github.com/potatosalad/erlang-jose",
docs: fn ->
{ref, 0} = System.cmd("git", ["rev-parse", "--verify", "--quiet", "HEAD"])
[source_ref: ref, main: "JOSE", extras: ["README.md", "CHANGELOG.md", "examples/KEY-GENERATION.md", "ALGORITHMS.md"]]
end,
description: description(),
package: package()
]
end
def application() do
[mod: {:jose_app, []}, extra_applications: [:crypto, :asn1, :public_key]]
end
defp deps() do
[
# {:cutkey, github: "potatosalad/cutkey", only: [:dev, :test]},
{:jason, "~> 1.3", only: [:dev, :test]},
{:jsone, "~> 1.7", only: [:dev, :test]},
{:jsx, "~> 3.1", only: [:dev, :test]},
# {:keccakf1600, "~> 2.0.0", only: [:dev, :test]},
{:libdecaf, "~> 2.1.1", only: [:dev, :test]},
{:libsodium, "~> 2.0.1", only: [:dev, :test]},
{:ojson, "~> 1.0", only: [:dev, :test]},
{:poison, "~> 5.0", only: [:dev, :test]},
{:thoas, "~> 0.4", only: [:dev, :test]},
{:ex_doc, "~> 0.28", only: :dev},
{:earmark, "~> 1.4", only: :dev}
]
end
defp description() do
"JSON Object Signing and Encryption (JOSE) for Erlang and Elixir."
end
def erlc_options() do
extra_options = []
[:debug_info | if(Mix.env() == :prod, do: [], else: [:warnings_as_errors]) ++ extra_options]
end
defp package() do
[
maintainers: ["Andrew Bennett"],
files: [
"CHANGELOG*",
"include",
"lib",
"LICENSE*",
"priv",
"mix.exs",
"README*",
"rebar.config",
"src"
],
licenses: ["MIT"],
links: %{"Github" => "https://github.com/potatosalad/erlang-jose", "Docs" => "https://hexdocs.pm/jose"}
]
end
end