forked from fewlinesco/bamboo_smtp
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
72 lines (63 loc) · 1.53 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
defmodule BambooSmtp.Mixfile do
use Mix.Project
@project_url "https://github.com/fewlinesco/bamboo_smtp"
@version "4.2.2"
def project do
[
app: :bamboo_smtp,
version: @version,
elixir: "~> 1.7",
source_url: @project_url,
homepage_url: @project_url,
name: "Bamboo SMTP Adapter",
description: "A Bamboo adapter for SMTP",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
test_coverage: [tool: ExCoveralls],
package: package(),
deps: deps(),
docs: docs()
]
end
def application do
[applications: [:gen_smtp, :logger, :bamboo]]
end
defp deps do
[
# core
{:bamboo, "~> 2.2.0"},
{:gen_smtp, "~> 1.2.0"},
# dev / test
{:credo, "~> 1.6.1", only: [:dev, :test]},
{:excoveralls, "~> 0.14.0", only: :test},
# doc
{:earmark, ">= 1.3.2", only: :docs},
{:ex_doc, ex_doc_version(), only: :docs},
{:inch_ex, "~> 2.0.0", only: :docs}
]
end
defp ex_doc_version do
if Version.match?(System.version(), "~> 1.7") do
"~> 0.24.0"
else
"~> 0.18.4"
end
end
defp package do
[
maintainers: ["Kevin Disneur", "Thomas Gautier"],
licenses: ["MIT"],
links: %{
"Changelog" => "#{@project_url}/blob/main/CHANGELOG.md",
"GitHub" => @project_url
}
]
end
defp docs do
[
main: "readme",
source_ref: "v#{@version}",
extras: ["README.md", "CHANGELOG.md": [title: "Changelog"]]
]
end
end