defmodule Effusion.Mixfile do use Mix.Project def project do [ app: :effusion, version: "0.1.0", elixir: "~> 1.6", elixirc_paths: elixirc_paths(Mix.env), start_permanent: Mix.env == :prod, description: "A BitTorrent library.", escript: [main_module: Effusion.CLI], # build with `mix escript.build` package: package(), deps: deps(), source_url: "https://github.com/Cantido/effusion", dialyzer: [ flags: ["-Wunmatched_returns", :error_handling, :race_conditions, :underspecs]] ] end defp elixirc_paths(:test), do: ["test/support", "lib"] defp elixirc_paths(_), do: ["lib"] def application do [ extra_applications: [:logger, :crypto], mod: {Effusion.Application, []} ] end defp deps do [ {:ex_bencode, "~> 2.0"}, {:int_set, "~> 1.2"}, {:ranch, "~> 1.4"}, {:httpotion, "~> 3.0.2"}, {:temp, "~> 0.4", only: :test}, {:mox, "~> 0.3", only: :test}, {:bypass, "~> 0.8", only: :test}, {:ex_doc, "~> 0.16", only: :dev, runtime: false}, {:dialyxir, "~> 0.5", only: [:dev], runtime: false} ] end defp package do [ name: :effusion, files: ["lib", "mix.exs", "README.md", "LICENSE"], maintainers: ["Rosa Richter"], licenses: ["GPL v3"], links: %{"Github" => "https://github.com/Cantido/effusion"}, ] end end