defmodule Maxwell.Mixfile do use Mix.Project def project do [app: :maxwell, version: "2.2.3", elixir: "~> 1.3", build_embedded: Mix.env == :prod, start_permanent: Mix.env == :prod, package: [ maintainers: ["zhongwencool"], links: %{"GitHub" => "https://github.com/zhongwencool/maxwell"}, files: ~w(lib LICENSE mix.exs README.md), description: """ Maxwell is an HTTP client adapter. """, licenses: ["MIT"] ], test_coverage: [tool: ExCoveralls], xref: [exclude: [Poison, Maxwell.Adapter.Ibrowse]], deps: deps()] end # Type "mix help compile.app" for more information def application do [applications: applications(Mix.env)] end defp applications(:test), do: [:logger, :poison, :ibrowse, :hackney] defp applications(_), do: [:logger] defp deps do [ {:mimerl, "~> 1.0.2"}, # for find multipart ctype {:poison, "~> 2.1 or ~> 3.0", optional: true}, {:ibrowse, "~> 4.2", optional: true}, {:hackney, "~> 1.6", optional: true}, {:fuse, "~> 2.4", optional: true}, {:excoveralls, "~> 0.6.2", only: :test}, {:ex_doc, ">= 0.19.0", only: [:dev]}, {:markdown, github: "devinus/markdown", only: [:dev]}, {:cmark, "~> 0.6", only: [:dev]}, {:inch_ex, "~> 0.5.4", only: :docs}, {:credo, "~> 0.5", only: [:dev]}, {:mock, "~> 0.3.1", only: :test}, ] end end