forked from florinpatrascu/bolt_sips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmix.exs
63 lines (56 loc) · 1.68 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
defmodule BoltSips.Mixfile do
use Mix.Project
@version "0.3.2"
def project do
[
app: :bolt_sips,
version: @version,
elixir: "~> 1.3",
deps: deps(),
package: package(),
description: "Neo4j driver for Elixir wrapped around the fast Bolt protocol",
name: "Bolt.Sips",
build_embedded: Mix.env == :prod,
start_permanent: Mix.env == :prod,
docs: [
extras: ["README.md", "CHANGELOG.md"],
source_ref: "v#{@version}",
source_url: "https://github.com/florinpatrascu/bolt_sips"
]
]
end
# Configuration for the OTP application
#
# Type "mix help compile.app" for more information
def application do
[applications: [:logger, :poolboy, :con_cache, :retry, :boltex, :fuzzyurl] ++ opt_etls(),
#mod: {Bolt.Sips.Application, [foo: "bar"]}
]
end
defp package() do
%{licenses: ["Apache 2.0"],
maintainers: ["Florin T.PATRASCU"],
links: %{"Github" => "https://github.com/florinpatrascu/bolt_sips"}}
end
# Type "mix help deps" for more examples and options
defp deps() do
[
{:poolboy, "~> 1.5.1"},
{:con_cache, "~> 0.12.0"},
{:fuzzyurl, "~> 0.9.0"},
{:retry, "~> 0.6.1"},
{:ex_doc, "~> 0.15.0", only: [:dev]},
{:mix_test_watch, "~> 0.3.3", only: [:dev, :test]},
{:boltex, "~> 0.3"},
# {:boltex, path: "../boltex/"},
{:credo, "~> 0.7.4", only: [:dev, :test]}
] ++ env_specific_deps()
end
defp env_specific_deps do
if System.get_env("BOLT_WITH_ETLS"), do: [{:etls, "~> 1.2"}], else: []
end
# when using Elixir < 1.4
defp opt_etls() do
if System.get_env("BOLT_WITH_ETLS"), do: [:etls], else: []
end
end