forked from jvoegele/external_service
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
57 lines (52 loc) · 1.6 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
defmodule ExternalService.Mixfile do
use Mix.Project
def project do
[
app: :external_service,
version: "1.1.2",
description:
"Elixir library for safely using any external service or API using automatic retry with rate limiting and circuit breakers. Calls to external services can be synchronous, asynchronous background tasks, or multiple calls can be made in parallel for MapReduce style processing.",
source_url: "https://github.com/jvoegele/external_service",
elixir: "~> 1.4",
start_permanent: Mix.env() == :prod,
package: package(),
docs: docs(),
deps: deps()
]
end
# Run "mix help compile.app" to learn about applications.
def application do
[
extra_applications: [:logger],
# mod: {ExternalService.Application, []}
]
end
# Run "mix help deps" to learn about dependencies.
defp deps do
[
{:fuse, "~> 2.5"},
{:retry, "~> 0.14.0"},
{:ex_rated, "~> 2.0"},
{:deep_merge, "~> 1.0"},
{:ex_doc, "~> 0.25.2", only: :dev, runtime: false},
{:dialyxir, "~> 1.1", only: [:dev, :test], runtime: false},
{:credo, "~> 1.5", only: [:dev, :test], runtime: false}
]
end
defp package do
# These are the default files included in the package
[
name: :external_service,
files: ["lib", "mix.exs", "README*", "LICENSE*"],
maintainers: ["Jason Voegele"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/jvoegele/external_service"}
]
end
defp docs do
[
extras: ["README.md"],
main: "readme"
]
end
end