defmodule ExRabbitMQAdmin.MixProject do use Mix.Project # x-release-please-version @version "0.2.0" @description "A Http client library for RabbitMQ Web API" @source_url "https://github.com/Intility/ex_rabbitmq_admin" def project do [ app: :ex_rabbitmq_admin, version: @version, elixir: "~> 1.13", elixirc_paths: elixirc_paths(Mix.env()), start_permanent: Mix.env() == :prod, description: @description, deps: deps(), dialyzer: [ plt_file: {:no_warn, "priv/plts/dialyzer.plt"} ], package: [ name: "ex_rabbitmq_admin", maintainers: ["Rolf HÃ¥vard Blindheim "], licenses: ["MIT"], links: %{GitHub: @source_url} ], docs: [ main: "readme", source_ref: "v#{@version}", source_url: @source_url, extras: [ "README.md", "LICENSE" ] ], test_coverage: [tool: ExCoveralls] ] end def cli do [ preferred_envs: [ coveralls: :test, "coveralls.detail": :test, "coveralls.post": :test, "coveralls.html": :test ] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] def application do [ extra_applications: [:logger] ] end defp deps do [ {:credo, "~> 1.7", only: [:dev, :test]}, {:ex_doc, "~> 0.40", only: [:dev, :test], runtime: false}, {:dialyxir, ">= 0.0.0", only: [:dev, :test], runtime: false}, {:excoveralls, "~> 0.18", only: :test}, {:hackney, "~> 4.4", optional: true}, {:jason, "~> 1.4"}, {:tesla, "~> 1.20"}, {:nimble_options, "~> 0.5 or ~> 1.0"} ] end end