-
Notifications
You must be signed in to change notification settings - Fork 3
/
mix.exs
78 lines (68 loc) · 2.25 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
74
75
76
77
78
defmodule Bamboo.ElasticEmailAdapter.Mixfile do
@moduledoc false
use Mix.Project
@project_url "https://github.com/KineticCafe/bamboo_elastic_email"
@version "1.2.1"
def project do
[
app: :bamboo_elastic_email,
version: @version,
elixir: "~> 1.4",
source_url: @project_url,
homepage_url: @project_url,
name: "Bamboo Elastic Email Adapter",
description: "A Bamboo adapter for the Elastic Email email service",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
package: package(),
elixirc_paths: elixirc_paths(Mix.env()),
dialyzer: [
plt_file: {:no_warn, "priv/plts/dialyzer.plt"}
],
deps: deps(),
docs: docs()
]
end
def application do
[extra_applications: [:logger, :bamboo]]
end
# Specifies which paths to compile per environment.
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp package do
[
maintainers: ["Austin Ziegler", "Kinetic Commerce"],
licenses: ["MIT"],
links: %{
"Github" => @project_url,
"Elastic Email" => "https://elasticemail.com"
}
]
end
defp docs do
[
source_ref: "v#{@version}",
canonical: "http://hexdocs.pm/bamboo_elastic_email",
main: "Bamboo.ElasticEmailAdapter",
source_url: @project_url,
extras: ["README.md", "Changelog.md", "Contributing.md", "Licence.md"]
]
end
defp deps do
[
{:bamboo, ">= 0.8.0 and < 2.0.0"},
{:plug, "~> 1.0"},
{:hackney, "~> 1.6"},
poison_dep(Version.compare(System.version(), "1.6.0-rc1")),
{:cowboy, "~> 1.0", only: [:dev, :test]},
{:plug_cowboy, "~> 1.0 or ~> 2.0", only: [:dev, :test]},
{:credo, "~> 1.0", only: [:dev], runtime: false},
{:dialyxir, "~> 1.0.0-rc.6", only: [:dev], runtime: false},
ex_doc_dep(Version.compare(System.version(), "1.7.0"))
]
end
defp poison_dep(:lt), do: {:poison, ">= 1.5.0 and < 4.0.0", optional: true}
defp poison_dep(_), do: {:poison, "~> 2.0 or ~> 3.0 or ~> 4.0", optional: true}
defp ex_doc_dep(:lt), do: {:ex_doc, "~> 0.18.0", only: :dev, runtime: false}
defp ex_doc_dep(_), do: {:ex_doc, "~> 0.19", only: :dev, runtime: false}
end