-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathmix.exs
62 lines (55 loc) · 1.42 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
defmodule Arangox.MixProject do
use Mix.Project
@version "0.7.0"
@description """
ArangoDB 3.11 driver for Elixir with connection pooling, support for \
VelocyStream, active failover, transactions and streamed cursors.
"""
@source_url "https://github.com/ArangoDB-Community/arangox"
@homepage_url "https://www.arangodb.com"
def project do
[
app: :arangox,
version: @version,
elixir: ">= 1.7.0",
start_permanent: Mix.env() == :prod,
name: "Arangox",
description: @description,
source_url: @source_url,
homepage_url: @homepage_url,
package: package(),
docs: docs(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[extra_applications: [:logger] ++ extras(Mix.env())]
end
defp extras(:prod), do: []
defp extras(_), do: [:gun]
defp package do
[
licenses: ["MIT"],
links: %{"GitHub" => @source_url}
]
end
defp docs do
[
source_ref: "v#{@version}",
main: "readme",
extras: ["README.md"]
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:db_connection, "~> 2.6"},
{:velocy, "~> 0.1", optional: true},
{:gun, "~> 2.0", optional: true},
{:mint, "~> 1.5", optional: true},
{:jason, "> 0.0.0", optional: true},
{:ex_doc, "> 0.0.0", only: :dev, runtime: false},
]
end
end