defmodule Grapevine.MixProject do use Mix.Project def project do [ app: :grapevine, version: "0.2.0", elixir: "~> 1.7", build_embedded: Mix.env() == :prod, start_permanent: Mix.env() == :prod, deps: deps(), elixirc_paths: elixirc_paths(Mix.env()), source_url: "https://github.com/luisfmcalado/grapevine", package: package(), preferred_cli_env: [ coveralls: :test, "coveralls.html": :test, "coveralls.json": :test ], test_coverage: [tool: ExCoveralls], docs: [ main: "readme", formatter_opts: [gfm: true], extras: ["README.md"] ], description: """ Rumor mongering protocol for Elixir """ ] end def application do [ extra_applications: [:logger] ] end defp elixirc_paths(:test), do: ["lib", "test/support"] defp elixirc_paths(_), do: ["lib"] defp package do [ files: ["lib", "mix.exs", "README*", "LICENSE*"], maintainers: ["Luis Calado"], licenses: ["MIT"], links: %{"GitHub" => "https://github.com/luisfmcalado/grapevine"} ] end defp deps do [ {:msgpax, "~> 2.0"}, {:dialyze, "~> 0.2.0"}, {:uuid, "~> 1.1"}, {:benchee, "~> 0.13", only: [:dev, :test]}, {:ex_doc, ">= 0.0.0", only: :dev}, {:dialyxir, "~> 0.3", only: :dev}, {:mox, "~> 0.4", only: :test}, {:excoveralls, "~> 0.10", only: :test} ] end end