forked from VIPAAR/arc
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mix.exs
54 lines (45 loc) · 1.1 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
defmodule Arc.Mixfile do
use Mix.Project
@version "0.8.0"
def project do
[app: :arc,
version: @version,
elixir: "~> 1.4",
deps: deps(),
# Hex
description: description(),
package: package()]
end
defp description do
"""
Flexible file upload and attachment library for Elixir.
"""
end
defp package do
[maintainers: ["Sean Stavropoulos"],
licenses: ["Apache 2.0"],
links: %{"GitHub" => "https://github.com/stavro/arc"},
files: ~w(mix.exs README.md CHANGELOG.md lib)]
end
def application do
[
applications: [
:logger,
:httpoison,
] ++ applications(Mix.env)
]
end
def applications(:test), do: [:ex_aws, :poison]
def applications(_), do: []
defp deps do
[
{:httpoison, "~> 0.11"}, # Required for downloading remote files
{:ex_aws, "~> 1.1", optional: true},
{:mock, "~> 0.1", only: :test},
{:ex_doc, "~> 0.14", only: :dev},
# If using Amazon S3:
{:poison, "~> 2.2 or ~> 3.1", optional: true},
{:sweet_xml, "~> 0.6", optional: true}
]
end
end