-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathmix.exs
More file actions
62 lines (55 loc) · 1.24 KB
/
mix.exs
File metadata and controls
62 lines (55 loc) · 1.24 KB
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
defmodule Redlock.Mixfile do
use Mix.Project
@version "1.0.21"
def project do
[
app: :redlock,
elixir: "~> 1.14",
version: @version,
package: package(),
start_permanent: Mix.env() == :prod,
deps: deps(),
docs: docs()
]
end
def application do
[
extra_applications: [:logger, :redix, :poolboy, :ex_hash_ring]
]
end
defp deps do
[
{:dialyxir, "~> 1.2.0", only: [:dev, :test], runtime: false},
{:ex_doc, "~> 0.29", only: :dev, runtime: false},
{:redix, "~> 1.3"},
{:poolboy, "~> 1.5"},
{:fastglobal, "~> 1.0.0"},
{:ex_hash_ring, "~> 3.0"}
]
end
defp docs do
[
main: "readme",
extras: docs_extras(),
source_ref: "v#{@version}",
source_url: "https://github.com/lyokato/redlock"
]
end
defp docs_extras do
[
"README.md": [title: "Readme"],
"CHANGELOG.md": [title: "Changelog"]
]
end
defp package() do
[
description: "Redlock (Redis Distributed Lock) implementation",
licenses: ["MIT"],
links: %{
"Github" => "https://github.com/lyokato/redlock",
"Docs" => "https://hexdocs.pm/redlock"
},
maintainers: ["Lyo Kato"]
]
end
end