-
Notifications
You must be signed in to change notification settings - Fork 22
/
mix.exs
53 lines (48 loc) · 1.22 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
defmodule Elastic.Mixfile do
use Mix.Project
@version "3.7.0"
def project do
[
app: :elastic,
version: @version,
elixir: "~> 1.5",
build_embedded: Mix.env() == :prod,
start_permanent: Mix.env() == :prod,
elixirc_paths: elixirc_paths(Mix.env()),
package: package(),
# Docs
name: "Elastic",
docs: [
source_ref: "v#{@version}",
main: "Elastic",
canonical: "http://hexdocs.pm/elastic",
source_url: "https://github.com/radar/elastic"
],
deps: deps()
]
end
def application do
[applications: [:logger, :httpotion, :aws_auth, :jason]]
end
defp elixirc_paths(:test), do: ["lib", "test/support"]
defp elixirc_paths(_), do: ["lib"]
defp deps do
[
{:httpotion, "~> 3.1"},
{:jason, "~> 1.1.2"},
{:aws_auth, "~> 0.7.1"},
{:credo, "~> 1.0", only: [:dev, :test]},
{:ex_doc, ">= 0.0.0", only: :dev}
]
end
defp package do
[
name: :elastic,
description: "You Know, for (Elastic) Search",
files: ["lib", "README*", "mix.exs"],
maintainers: ["Ryan Bigg"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/radar/elastic"}
]
end
end