Current section

Files

Jump to
tesla mix.exs
Raw

mix.exs

defmodule Tesla.Mixfile do
use Mix.Project
def project do
[app: :tesla,
version: "0.3.2",
description: description,
package: package,
source_url: "https://github.com/teamon/tesla",
elixir: "~> 1.0",
deps: deps,
test_coverage: [tool: ExCoveralls]]
end
# Configuration for the OTP application
#
# Type `mix help compile.app` for more information
def application do
[applications: applications(Mix.env)]
end
def applications(:test), do: applications(:dev) ++ [:httparrot]
def applications(_), do: [:logger]
defp description do
"HTTP client library, with support for middleware and multiple adapters."
end
defp package do
[maintainers: ["Tymon Tobolski"],
licenses: ["MIT"],
links: %{"GitHub" => "https://github.com/teamon/tesla"}]
end
defp deps do
[
# http clients
{:ibrowse, github: "cmullaparthi/ibrowse", tag: "v4.2", optional: true},
{:hackney, "~> 1.6.0", optional: true},
# json parsers
{:exjsx, "~> 3.2.0", optional: true},
{:poison, "~> 2.0", optional: true},
# testing & docs
{:httparrot, github: "edgurgel/httparrot", tag: "0.3.4", only: :test},
{:excoveralls, "~> 0.5", only: :test},
{:ex_doc, "~> 0.13.0", only: :dev},
{:mix_test_watch, "0.2.6", only: :dev}
]
end
end