66 lines
1.4 KiB
Elixir
66 lines
1.4 KiB
Elixir
defmodule HTTPoison.Mixfile do
|
|
use Mix.Project
|
|
|
|
@description "Yet Another HTTP client for Elixir powered by hackney"
|
|
@source_url "https://github.com/edgurgel/httpoison"
|
|
|
|
def project do
|
|
[
|
|
app: :httpoison,
|
|
version: "2.2.2",
|
|
elixir: "~> 1.11",
|
|
name: "HTTPoison",
|
|
description: @description,
|
|
package: package(),
|
|
deps: deps(),
|
|
source_url: @source_url,
|
|
docs: [
|
|
main: "readme",
|
|
logo: "logo.png",
|
|
extras: [
|
|
"README.md",
|
|
"CHANGELOG.md"
|
|
]
|
|
],
|
|
dialyzer: [
|
|
plt_add_deps: :transitive,
|
|
flags: [
|
|
:unmatched_returns,
|
|
:race_conditions,
|
|
:underspecs
|
|
# :overspecs,
|
|
# :specdiffs
|
|
]
|
|
]
|
|
]
|
|
end
|
|
|
|
def application do
|
|
[]
|
|
end
|
|
|
|
defp deps do
|
|
[
|
|
{:hackney, "~> 1.21"},
|
|
{:mimic, "~> 0.1", only: :test},
|
|
{:jason, "~> 1.2", only: :test},
|
|
{:httparrot, "~> 1.2", only: :test},
|
|
{:cowboy, "~> 2.8", only: :test, override: true},
|
|
{:earmark, "~> 1.0", only: :dev},
|
|
{:ex_doc, "~> 0.18", only: :dev},
|
|
{:dialyxir, "~> 1.0.0-rc.3", only: [:dev, :test], runtime: false}
|
|
]
|
|
end
|
|
|
|
defp package do
|
|
[
|
|
maintainers: ["Eduardo Gurgel Pinho"],
|
|
licenses: ["MIT"],
|
|
links: %{
|
|
Changelog: @source_url <> "/blob/master/CHANGELOG.md",
|
|
GitHub: @source_url
|
|
}
|
|
]
|
|
end
|
|
end
|